diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2011-06-09 18:23:09 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2011-06-09 18:23:09 +0000 |
commit | 30ecdcc12191f9b424ce50ae3ed401d9dd8cfc02 (patch) | |
tree | 682eccac4dd1b402cf3553e07ca57e42278480f0 /tests | |
parent | e254e53d8c8769765abdb8d5e1f1ce8b65d1b313 (diff) | |
download | strace-30ecdcc12191f9b424ce50ae3ed401d9dd8cfc02.tar.gz strace-30ecdcc12191f9b424ce50ae3ed401d9dd8cfc02.tar.bz2 strace-30ecdcc12191f9b424ce50ae3ed401d9dd8cfc02.tar.xz |
tests: update test for linux kernel version
* tests/ptrace_setoptions_followfork: Check for Linux kernel > 2.6.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/ptrace_setoptions_followfork | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/ptrace_setoptions_followfork b/tests/ptrace_setoptions_followfork index 987a2db..bb25c03 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 |