From: Florian Krohm Date: Sat, 8 Oct 2011 15:27:36 +0000 (+0000) Subject: On systems where /proc/sys/kernel/yama/ptrace_scope exists we need to X-Git-Tag: svn/VALGRIND_3_7_0~113 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8de0555f0c893e78c1f8f06b4a5267df2c3292f4;p=thirdparty%2Fvalgrind.git On systems where /proc/sys/kernel/yama/ptrace_scope exists we need to check its value to avoid testcase failure. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12124 --- diff --git a/gdbserver_tests/mcinvokeRU.vgtest b/gdbserver_tests/mcinvokeRU.vgtest index 4b89d8effa..825ca56d08 100644 --- a/gdbserver_tests/mcinvokeRU.vgtest +++ b/gdbserver_tests/mcinvokeRU.vgtest @@ -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