From: Dmitry V. Levin Date: Thu, 9 Jun 2011 18:23:09 +0000 (+0000) Subject: tests: update test for linux kernel version X-Git-Tag: v4.7~376 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=30ecdcc12191f9b424ce50ae3ed401d9dd8cfc02;p=strace tests: update test for linux kernel version * tests/ptrace_setoptions_followfork: Check for Linux kernel > 2.6. --- diff --git a/tests/ptrace_setoptions_followfork b/tests/ptrace_setoptions_followfork index 987a2dbb..bb25c036 100755 --- a/tests/ptrace_setoptions_followfork +++ b/tests/ptrace_setoptions_followfork @@ -4,9 +4,11 @@ . "${srcdir=.}/init.sh" -case "$(uname -rs)" in - Linux\ 2.6.*) ;; - *) skip_ 'The kernel is not Linux 2.6.*' ;; +[ "$(uname -s)" = Linux ] || + skip_ 'The kernel is not a Linux kernel' +case "$(uname -r)" in + 2.[6-9]*|2.[1-5][0-9]*|[3-9].*|[12][0-9]*) ;; + *) skip_ 'The kernel is not Linux 2.6.* or newer' ;; esac check_strace