]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: tail: avoid a test failure on GNU/Hurd
authorCollin Funk <collin.funk1@gmail.com>
Sat, 8 Nov 2025 06:15:37 +0000 (22:15 -0800)
committerCollin Funk <collin.funk1@gmail.com>
Sat, 8 Nov 2025 19:43:07 +0000 (11:43 -0800)
* 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

index 9672b9fb62d93c816e5d043630daa6ea26596aba..23cef1ce8ab17051dd5cf80f2065cd6e1d2c8419 100755 (executable)
@@ -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