1
0
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:
Collin Funk
2026-03-23 21:44:05 -07:00
parent c495cbcfe2
commit 7b4bbaa074
+1 -5
View File
@@ -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