|
From: <sv...@va...> - 2011-10-08 15:32:22
|
Author: florian Date: 2011-10-08 16:27:36 +0100 (Sat, 08 Oct 2011) New Revision: 12124 Log: On systems where /proc/sys/kernel/yama/ptrace_scope exists we need to check its value to avoid testcase failure. Modified: trunk/gdbserver_tests/mcinvokeRU.vgtest Modified: trunk/gdbserver_tests/mcinvokeRU.vgtest =================================================================== --- trunk/gdbserver_tests/mcinvokeRU.vgtest 2011-10-08 12:41:12 UTC (rev 12123) +++ trunk/gdbserver_tests/mcinvokeRU.vgtest 2011-10-08 15:27:36 UTC (rev 12124) @@ -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 |