aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCollin Funk <collin.funk1@gmail.com>2025-11-07 22:15:37 -0800
committerCollin Funk <collin.funk1@gmail.com>2025-11-08 11:43:07 -0800
commit56fc0e6f8d4d7cce77fa36a4dd2500b3841645ef (patch)
treedc5266fb2bce3e1d7f075317a086b1543cb1164d
parentchcon: fix memory leak in error path (diff)
downloadcoreutils-56fc0e6f8d4d7cce77fa36a4dd2500b3841645ef.tar.gz
coreutils-56fc0e6f8d4d7cce77fa36a4dd2500b3841645ef.zip
tests: tail: avoid a test failure on GNU/HurdHEADmaster
* tests/tail/tail-c.sh: Allow 'tail -c 4096 /dev/urandom' to run forever on GNU/Hurd since lseek fails with ESPIPE.
-rwxr-xr-xtests/tail/tail-c.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/tail/tail-c.sh b/tests/tail/tail-c.sh
index 9672b9fb6..23cef1ce8 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