summaryrefslogtreecommitdiff
path: root/tests/misc/truncate-dir-fail
blob: d1a67e4ba557a8f0a619ef4121c630116c94ac99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
# Make sure truncate fails for a directory.

if test "$VERBOSE" = yes; then
  set -x
  truncate --version
fi

. $srcdir/test-lib.sh

# truncate on dir not allowed
truncate -s+0 . && fail=1

Exit $fail