From: Dmitry V. Levin Date: Thu, 9 Jun 2011 18:23:09 +0000 (+0000) Subject: tests: finish ptrace_setoptions_* merge X-Git-Tag: v4.7~365 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d1d182209ea010f52bcf903739e7dbe0385e0021;p=strace tests: finish ptrace_setoptions_* merge * tests/Makefile.am (TESTS): Merge ptrace_setoptions_*. * tests/ptrace_setoptions: Check for Linux kernel > 2.6. --- diff --git a/tests/Makefile.am b/tests/Makefile.am index 23472b82..93636ca8 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,6 +1,6 @@ # Automake input for strace tests. -TESTS = ptrace_setoptions_followfork ptrace_setoptions_for_all strace-f +TESTS = ptrace_setoptions strace-f EXTRA_DIST = init.sh $(TESTS) diff --git a/tests/ptrace_setoptions b/tests/ptrace_setoptions index 57e92b65..7afd0436 100755 --- a/tests/ptrace_setoptions +++ b/tests/ptrace_setoptions @@ -1,12 +1,15 @@ #!/bin/sh -# Ensure that strace tests kernel PTRACE_O_TRACECLONE support properly. +# Ensure that strace tests kernel PTRACE_O_TRACECLONE +# and PTRACE_O_TRACESYSGOOD support properly. . "${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