From: Dmitry V. Levin Date: Mon, 11 Aug 2014 23:18:56 +0000 (+0000) Subject: tests: skip detach-stopped.test when PTRACE_SEIZE doesn't work X-Git-Tag: v4.9~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e55264e0120c3804c971fdaf48faf2dbb2ccce0a;p=strace tests: skip detach-stopped.test when PTRACE_SEIZE doesn't work detach-stopped.test is known to fail when PTRACE_SEIZE is not available, so skip the test in that case. * tests/detach-stopped.test: Check for "strace -d" output and skip the test when it says that PTRACE_SEIZE doesn't work. --- diff --git a/tests/detach-stopped.test b/tests/detach-stopped.test index 88499bfc..c41bc047 100755 --- a/tests/detach-stopped.test +++ b/tests/detach-stopped.test @@ -7,6 +7,11 @@ check_prog sleep check_prog grep +$STRACE -d -enone / > /dev/null 2> $LOG +if grep -F -x "PTRACE_SEIZE doesn't work" $LOG > /dev/null; then + skip_ "PTRACE_SEIZE doesn't work" +fi + set -e rm -f $LOG