]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
On systems where /proc/sys/kernel/yama/ptrace_scope exists we need to
authorFlorian Krohm <florian@eich-krohm.de>
Sat, 8 Oct 2011 15:27:36 +0000 (15:27 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Sat, 8 Oct 2011 15:27:36 +0000 (15:27 +0000)
check its value to avoid testcase failure.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12124

gdbserver_tests/mcinvokeRU.vgtest

index 4b89d8effae958579a61d31c39e3a6b415675e6e..825ca56d087c05c64eba0ba3aaf821c071fbcb9f 100644 (file)
@@ -1,5 +1,6 @@
 # test that vgdb can invoke a process when all threads are in Runnable or Yielding mode
 # If the test goes wrong, it might consume CPU during a long time.
+prereq: ! test -e "/proc/sys/kernel/yama/ptrace_scope" || [ "`cat /proc/sys/kernel/yama/ptrace_scope`" = "0" ]
 prog: sleepers
 args: 1 0 1000000000 B-B-B-B-
 vgopts: --tool=memcheck --vgdb=yes --vgdb-prefix=./vgdb-prefix-mcinvokeRU