diff options
| author | Collin Funk <collin.funk1@gmail.com> | 2025-11-06 16:52:03 -0800 |
|---|---|---|
| committer | Collin Funk <collin.funk1@gmail.com> | 2025-11-06 16:52:03 -0800 |
| commit | 8dd89f55d52059e590572ed94a8c9165f92b5354 (patch) | |
| tree | 452a2308d59262b11ba1d60164b3a2e5040c13d9 | |
| parent | gnulib: update to latest (diff) | |
| download | coreutils-8dd89f55d52059e590572ed94a8c9165f92b5354.tar.gz coreutils-8dd89f55d52059e590572ed94a8c9165f92b5354.zip | |
tests: wc: protect against a hang on GNU/Hurd
Reported by Bruno Haible in
<https://lists.gnu.org/r/coreutils/2025-11/msg00051.html>.
* tests/wc/wc-total.sh: Skip a test that would exhaust memory on
GNU/Hurd.
| -rwxr-xr-x | tests/wc/wc-total.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/wc/wc-total.sh b/tests/wc/wc-total.sh index 1622962c5..e62840c2c 100755 --- a/tests/wc/wc-total.sh +++ b/tests/wc/wc-total.sh @@ -42,7 +42,8 @@ compare exp out || fail=1 wc --total=always 2b > out || fail=1 test "$(wc -l < out)" = 2 || fail=1 -if truncate -s 2E big; then +# Skip this test on GNU/Hurd since it will exhaust memory there. +if test "$(uname)" != GNU && truncate -s 2E big; then if test "$UINTMAX_MAX" = '18446744073709551615'; then # Ensure overflow is diagnosed returns_ 1 wc --total=only -c big big big big big big big big \ |
