From 56fc0e6f8d4d7cce77fa36a4dd2500b3841645ef Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Fri, 7 Nov 2025 22:15:37 -0800 Subject: [PATCH] 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. --- tests/tail/tail-c.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.47.3