mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-06-04 16:56:38 +02:00
tests: truncate: don't rely on errno being EISDIR
* tests/truncate/multiple-files.sh: Only check that an error is printed instead of an exact message. Reported by Bruno Haible.
This commit is contained in:
@@ -24,10 +24,6 @@ returns_ 1 truncate -s0 a . b > out 2> err || fail=1
|
||||
test -f a || fail=1
|
||||
test -f b || fail=1
|
||||
compare /dev/null out || fail=1
|
||||
cat <<EOF > exp-err || framework_failure_
|
||||
truncate: cannot open '.' for writing: $EISDIR
|
||||
EOF
|
||||
compare exp-err err || fail=1
|
||||
|
||||
compare /dev/null err && fail=1
|
||||
|
||||
Exit $fail
|
||||
|
||||
Reference in New Issue
Block a user