1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-17 09:05:50 +02:00
Files
coreutils/tests/misc/truncate-dir-fail
Jim Meyering 12a0a583f6 tests: remove the less-regular fail=0 assignments manually
* tests/tail-2/assert-2:
* tests/tail-2/assert:
* tests/cp/file-perm-race:
* tests/misc/df:
* tests/misc/truncate-dir-fail:
2009-10-30 10:49:22 +01:00

15 lines
211 B
Bash
Executable File

#!/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