From: Dmitry V. Levin Date: Fri, 4 Oct 2019 21:58:20 +0000 (+0000) Subject: tests: extend checks of --seccomp-bpf diagnostics X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b79e45afc146add8aaa91d5c8efc4124b9ab5426;p=strace tests: extend checks of --seccomp-bpf diagnostics * tests/options-syntax.test: Add --seccomp-bpf checks. --- diff --git a/tests/options-syntax.test b/tests/options-syntax.test index 90511c3c..141689ac 100755 --- a/tests/options-syntax.test +++ b/tests/options-syntax.test @@ -45,6 +45,11 @@ check_h "incorrect personality designator '42' in qualification 'getcwd@42'" -e check_h "incorrect personality designator '42' in qualification 'getcwd@42'" -e trace=gettid,getcwd@42 check_h "incorrect personality designator '42' in qualification '23@42'" -e trace=23@42,123 +check_h '--seccomp-bpf implies -f +-w must be given with (-c or -C)' --seccomp-bpf -w / +check_h '--seccomp-bpf is not enabled for processes attached with -p +-w must be given with (-c or -C)' --seccomp-bpf -f -p 1 -w + check_e "invalid system call '/getcwd@ohmy'" -e trace=/getcwd@ohmy check_e "invalid -e kvm= argument: 'chdir'" -e kvm=chdir