]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: truncate: don't rely on errno being EISDIR
authorCollin Funk <collin.funk1@gmail.com>
Tue, 24 Mar 2026 04:44:05 +0000 (21:44 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Wed, 25 Mar 2026 02:02:21 +0000 (19:02 -0700)
* tests/truncate/multiple-files.sh: Only check that an error is printed
instead of an exact message.
Reported by Bruno Haible.

tests/truncate/multiple-files.sh

index d7a984c4205a4f9d6f0df97fba596199c4fe25dd..a079b66ad44e632455e795bf095325f997d855d6 100755 (executable)
@@ -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