summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2011-06-09 18:23:09 +0000
committerDmitry V. Levin <ldv@altlinux.org>2011-06-09 18:23:09 +0000
commit30ecdcc12191f9b424ce50ae3ed401d9dd8cfc02 (patch)
tree682eccac4dd1b402cf3553e07ca57e42278480f0 /tests
parente254e53d8c8769765abdb8d5e1f1ce8b65d1b313 (diff)
downloadstrace-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-xtests/ptrace_setoptions_followfork8
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