diff options
| author | Collin Funk <collin.funk1@gmail.com> | 2026-03-23 21:44:05 -0700 |
|---|---|---|
| committer | Collin Funk <collin.funk1@gmail.com> | 2026-03-24 19:02:21 -0700 |
| commit | 7b4bbaa0745969519368e76216e5f35c45f20ce2 (patch) | |
| tree | 02cabac4cf97e208aa33251368cb1e74464cfae5 | |
| parent | c495cbcfe2edbf03b46a96e16d4498b6ba4e7be0 (diff) | |
| download | coreutils-7b4bbaa0745969519368e76216e5f35c45f20ce2.tar.gz coreutils-7b4bbaa0745969519368e76216e5f35c45f20ce2.zip | |
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.
| -rwxr-xr-x | tests/truncate/multiple-files.sh | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/truncate/multiple-files.sh b/tests/truncate/multiple-files.sh index d7a984c42..a079b66ad 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 <<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 |
