diff --git a/tests/tail/tail-c.sh b/tests/tail/tail-c.sh index 75392df23..23519918b 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