From e55264e0120c3804c971fdaf48faf2dbb2ccce0a Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Mon, 11 Aug 2014 23:18:56 +0000 Subject: [PATCH] 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. --- tests/detach-stopped.test | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.40.0