OSDN Git Service

initial commit
[openbsd-octeon/openbsd-octeon.git] / src / regress / sys / ffs / tests / truncate / 13.t
1 #!/bin/sh
2 # $FreeBSD: src/tools/regression/fstest/tests/truncate/13.t,v 1.1 2007/01/17 01:42:12 pjd Exp $
3
4 desc="truncate returns EINVAL if the length argument was less than 0"
5
6 n0=`namegen`
7
8 expect 0 create ${n0} 0644
9 expect EINVAL truncate ${n0} -1
10 expect EINVAL truncate ${n0} -999999
11 expect 0 unlink ${n0}