diff options
Diffstat (limited to 'regress/sys/ffs/tests/truncate/13.t')
-rw-r--r-- | regress/sys/ffs/tests/truncate/13.t | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/regress/sys/ffs/tests/truncate/13.t b/regress/sys/ffs/tests/truncate/13.t new file mode 100644 index 00000000000..30c63cf5ac7 --- /dev/null +++ b/regress/sys/ffs/tests/truncate/13.t @@ -0,0 +1,11 @@ +#!/bin/sh +# $FreeBSD: src/tools/regression/fstest/tests/truncate/13.t,v 1.1 2007/01/17 01:42:12 pjd Exp $ + +desc="truncate returns EINVAL if the length argument was less than 0" + +n0=`namegen` + +expect 0 create ${n0} 0644 +expect EINVAL truncate ${n0} -1 +expect EINVAL truncate ${n0} -999999 +expect 0 unlink ${n0} |