* tests/Makefile.am (TESTS): Merge ptrace_setoptions_*.
* tests/ptrace_setoptions: Check for Linux kernel > 2.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)
#!/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