From: Collin Funk Date: Fri, 7 Nov 2025 00:52:03 +0000 (-0800) Subject: tests: wc: protect against a hang on GNU/Hurd X-Git-Tag: v9.9~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8dd89f55d52059e590572ed94a8c9165f92b5354;p=thirdparty%2Fcoreutils.git tests: wc: protect against a hang on GNU/Hurd Reported by Bruno Haible in . * tests/wc/wc-total.sh: Skip a test that would exhaust memory on GNU/Hurd. --- diff --git a/tests/wc/wc-total.sh b/tests/wc/wc-total.sh index 1622962c5d..e62840c2cc 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 \