]> granicus.if.org Git - strace/blob - tests/seccomp-strict.test
tests: extend TEST_NETLINK_OBJECT macro
[strace] / tests / seccomp-strict.test
1 #!/bin/sh
2
3 # Check how seccomp SECCOMP_SET_MODE_STRICT is decoded.
4
5 . "${srcdir=.}/init.sh"
6
7 set -- "../$NAME"
8 "$@" > /dev/null || {
9         case $? in
10                 77) skip_ "$* exited with code 77" ;;
11                 137) framework_skip_ "$* killed by SIGKILL, fix your kernel" ;;
12                 *) fail_ "$args failed" ;;
13         esac
14 }
15 run_strace -eseccomp "$@" > "$EXP"
16 match_diff "$LOG" "$EXP"