From: Collin Funk Date: Tue, 24 Mar 2026 04:44:05 +0000 (-0700) Subject: tests: truncate: don't rely on errno being EISDIR X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b4bbaa0745969519368e76216e5f35c45f20ce2;p=thirdparty%2Fcoreutils.git 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. --- diff --git a/tests/truncate/multiple-files.sh b/tests/truncate/multiple-files.sh index d7a984c420..a079b66ad4 100755 --- a/tests/truncate/multiple-files.sh +++ b/tests/truncate/multiple-files.sh @@ -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 < 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