From 7b4bbaa0745969519368e76216e5f35c45f20ce2 Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Mon, 23 Mar 2026 21:44:05 -0700 Subject: [PATCH] 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. --- tests/truncate/multiple-files.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 -- 2.47.3