]> granicus.if.org Git - strace/commitdiff
tests: skip detach-stopped.test when PTRACE_SEIZE doesn't work
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 11 Aug 2014 23:18:56 +0000 (23:18 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 12 Aug 2014 01:09:28 +0000 (01:09 +0000)
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

index 88499bfcfef59e501168ab994e26819643cb4bdb..c41bc04729df8eadf25f4d0e2b66ce280c9cecf2 100755 (executable)
@@ -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