]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - tools/regression/pjdfstest/tests/truncate/13.t
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
[FreeBSD/stable/10.git] / tools / regression / pjdfstest / tests / truncate / 13.t
1 #!/bin/sh
2 # $FreeBSD$
3
4 desc="truncate returns EINVAL if the length argument was less than 0"
5
6 dir=`dirname $0`
7 . ${dir}/../misc.sh
8
9 echo "1..4"
10
11 n0=`namegen`
12
13 expect 0 create ${n0} 0644
14 expect EINVAL -- truncate ${n0} -1
15 expect EINVAL -- truncate ${n0} -999999
16 expect 0 unlink ${n0}