From: Collin Funk Date: Sat, 8 Nov 2025 06:15:37 +0000 (-0800) Subject: tests: tail: avoid a test failure on GNU/Hurd X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;p=thirdparty%2Fcoreutils.git tests: tail: avoid a test failure on GNU/Hurd * tests/tail/tail-c.sh: Allow 'tail -c 4096 /dev/urandom' to run forever on GNU/Hurd since lseek fails with ESPIPE. --- diff --git a/tests/tail/tail-c.sh b/tests/tail/tail-c.sh index 9672b9fb62..23cef1ce8a 100755 --- a/tests/tail/tail-c.sh +++ b/tests/tail/tail-c.sh @@ -55,7 +55,8 @@ if test -r /dev/urandom; then [12].*) ;; # Older Linux versions timeout *) fail=1 ;; esac ;; - *) fail=1 ;; + # GNU/Hurd cannot seek on /dev/urandom. + *) test "$(uname)" = GNU || fail=1 ;; esac ;; esac fi