Description
The following are negative test cases for truncate.
- new length > old length
- truncating a directory
- truncating a non-existing file
- truncating a file without write permission
- truncating a file opened for append
- truncating a file in safemode
Also add more truncate tests such as truncate with HA setup, truncate with other operations and multiple truncates.