projects
/
platform
/
upstream
/
strace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5588a8
)
tests: skip detach-stopped.test when PTRACE_SEIZE doesn't work
author
Dmitry V. Levin
<ldv@altlinux.org>
Mon, 11 Aug 2014 23:18:56 +0000
(23:18 +0000)
committer
Dmitry 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
patch
|
blob
|
history
diff --git
a/tests/detach-stopped.test
b/tests/detach-stopped.test
index 88499bfcfef59e501168ab994e26819643cb4bdb..c41bc04729df8eadf25f4d0e2b66ce280c9cecf2 100755
(executable)
--- 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