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 committed 2026-03-24 19:02:21 -07:00
1 parent c495cbcfe2
commit 7b4bbaa074
1 file changed
+1 -5
+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