| 1 | #!/bin/sh |
| 2 | |
| 3 | # Ensure that strace tests kernel PTRACE_O_TRACECLONE support properly. |
| 4 | |
| 5 | . "${srcdir=.}/init.sh" |
| 6 | |
| 7 | case "$(uname -rs)" in |
| 8 | Linux\ 2.6.*) ;; |
| 9 | *) skip_ 'The kernel is not Linux 2.6.*' ;; |
| 10 | esac |
| 11 | |
| 12 | check_strace |
| 13 | check_prog timeout |
| 14 | |
| 15 | timeout -s 9 9 \ |
| 16 | $STRACE -df -enone / 2>&1 | |
| 17 | grep -F -x 'ptrace_setoptions = 0xe' > /dev/null || |
| 18 | fail_ 'strace failed to recognize proper kernel PTRACE_O_TRACECLONE support' |