]> sourceware.org Git - systemtap.git/commitdiff
PR12211: rework testsuite with failed-subtask tolerance
authorFrank Ch. Eigler <fche@redhat.com>
Tue, 17 May 2011 10:53:34 +0000 (06:53 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Tue, 17 May 2011 10:53:34 +0000 (06:53 -0400)
After PR12211, a "stap -c CMD" run where the CMD fails (rc != 0)
now results in an overall stap failure.  This is undesirable with
some of the example scripts that use failed CMDs.

* systemtap.examples/general/para-callgraph-verbose.meta (test_installcheck):
  Add a "|| true" to the sh -c command string to ensure CMD is deemed to
  succeed.
* systemtap.examples/general/para-callgraph.meta: Ditto.
* systemtap.examples/process/noptrace.meta: Ditto.

testsuite/systemtap.examples/general/para-callgraph-verbose.meta
testsuite/systemtap.examples/general/para-callgraph.meta
testsuite/systemtap.examples/process/noptrace.meta

index babc3ab62591168519b42f1e8d9aa044beae127d..1a717a34e021a7edae506cba1e5f6087e6416415 100644 (file)
@@ -4,4 +4,4 @@ keywords: trace callgraph
 subsystem: general
 description: Print a timed per-thread callgraph, complete with pretty-printed function parameters and return values.  The first parameter names the function probe points to trace.  The optional second parameter names the probe points for trigger functions, which acts to enable tracing for only those functions that occur while the current thread is nested within the trigger.
 test_check: stap -p4 para-callgraph-verbose.stp 'kernel.function("*@fs/proc*.c")' 'kernel.function("vfs_read")'
-test_installcheck: stap para-callgraph-verbose.stp 'kernel.function("*@fs/proc*.c")' 'kernel.function("vfs_read")' -c "cat /proc/sys/vm/*"
+test_installcheck: stap para-callgraph-verbose.stp 'kernel.function("*@fs/proc*.c")' 'kernel.function("vfs_read")' -c "cat /proc/sys/vm/* || true"
index 32f56ef236450522a6e7756c8d41fca174e5f9a6..c34657411cc6d66a701b2a1b67d25c47e2d0bf1d 100644 (file)
@@ -4,4 +4,4 @@ keywords: trace callgraph
 subsystem: general
 description: Print a timed per-thread callgraph, complete with function parameters and return values.  The first parameter names the function probe points to trace.  The optional second parameter names the probe points for trigger functions, which acts to enable tracing for only those functions that occur while the current thread is nested within the trigger.
 test_check: stap -p4 para-callgraph.stp 'kernel.function("*@fs/proc*.c")' 'kernel.function("vfs_read")'
-test_installcheck: stap para-callgraph.stp 'kernel.function("*@fs/proc*.c")' 'kernel.function("vfs_read")' -c "cat /proc/sys/vm/*"
+test_installcheck: stap para-callgraph.stp 'kernel.function("*@fs/proc*.c")' 'kernel.function("vfs_read")' -c "cat /proc/sys/vm/* || true"
index 22b1ea5b40206b315faa5f93a7c82dafd9fe8f8b..a8068a7e9244191fed09afd6ca8e089f9428e823 100644 (file)
@@ -4,5 +4,5 @@ keywords: process security
 description: noptrace.stp blocks ptrace(2) attempts from processes identified by stap -c/-x, as also specifiable from /proc/systemtap/stap_XXX/ control files.  Processes may be added or removed from the blocked list.
 test_support: test -e /etc/redhat-release && grep -v "Nahant" /etc/redhat-release
 test_check: stap -gp4 noptrace.stp -x $$
-test_installcheck: stap -g noptrace.stp -c 'strace ls'
+test_installcheck: stap -g noptrace.stp -c 'strace ls || true'
 
This page took 0.029576 seconds and 5 git commands to generate.