mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-17 09:05:50 +02:00
* tests/tail-2/assert-2: * tests/tail-2/assert: * tests/cp/file-perm-race: * tests/misc/df: * tests/misc/truncate-dir-fail:
15 lines
211 B
Bash
Executable File
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
|