]> granicus.if.org Git - strace/blob - tests/ptrace_setoptions_for_all
Remove write-only nzombies member from struct tcb
[strace] / tests / ptrace_setoptions_for_all
1 #!/bin/sh
2
3 # Ensure that strace tests kernel PTRACE_O_TRACESYSGOOD support properly.
4
5 . "${srcdir=.}/init.sh"
6
7 [ "$(uname -s)" = Linux ] ||
8         skip_ 'The kernel is not a Linux kernel'
9 case "$(uname -r)" in
10         2.[6-9]*|2.[1-5][0-9]*|[3-9].*|[12][0-9]*) ;;
11         *) skip_ 'The kernel is not Linux 2.6.* or newer' ;;
12 esac
13
14 check_strace
15 check_prog timeout
16
17 timeout -s 9 9 \
18 $STRACE -d -enone / 2>&1 |
19         grep -F -x 'ptrace_setoptions_for_all = 0x11' > /dev/null ||
20                 fail_ 'strace failed to recognize proper kernel PTRACE_O_TRACESYSGOOD support'