From: Pádraig Brady Date: Thu, 16 Jan 2025 21:05:34 +0000 (+0000) Subject: tests: tail-c.sh: avoid failure on Linux kernels <= 2 X-Git-Tag: v9.6~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=700690ebc35e2afdee06100d83427c45b6e87a4c;p=thirdparty%2Fcoreutils.git tests: tail-c.sh: avoid failure on Linux kernels <= 2 tests/tail/tail-c.sh: Exclude older kernels from timeout failure. --- diff --git a/tests/tail/tail-c.sh b/tests/tail/tail-c.sh index 75392df23e..23519918bb 100755 --- a/tests/tail/tail-c.sh +++ b/tests/tail/tail-c.sh @@ -48,7 +48,15 @@ if test -r /dev/urandom; then 0) ;; # Solaris 11 allows negative seek but then gives EINVAL on read 1) grep 'Invalid argument' err || fail=1;; - *) fail=1;; + *) + case $host_triplet in + *linux-gnu*) + case "$(uname -r)" in + [12].*) ;; # Older Linux versions timeout + *) fail=1 ;; + esac ;; + *) fail=1 ;; + esac ;; esac fi