]> CyberLeo.Net >> Repos - FreeBSD/releng/9.0.git/blob - tools/regression/pjdfstest/tests/truncate/13.t
Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
[FreeBSD/releng/9.0.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}