From 700690ebc35e2afdee06100d83427c45b6e87a4c Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?=
Date: Thu, 16 Jan 2025 21:05:34 +0000 Subject: [PATCH] tests: tail-c.sh: avoid failure on Linux kernels <= 2 tests/tail/tail-c.sh: Exclude older kernels from timeout failure. --- tests/tail/tail-c.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 -- 2.47.3