diff options
-rw-r--r-- | testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | testsuite/lib/systemtap.exp | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/ChangeLog b/testsuite/ChangeLog index 4bdd6560..a3ab8261 100644 --- a/testsuite/ChangeLog +++ b/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-06-15 Frank Ch. Eigler <fche@elastic.org> + + * lib/systemtap.exp (stap_run_batch): Detect crashing stap and + represent this as failing return code. + 2007-06-14 Martin Hunt <hunt@redhat.com> * systemtap.samples/syscalls.stp: Use printf diff --git a/testsuite/lib/systemtap.exp b/testsuite/lib/systemtap.exp index 7f534967..46f4ada5 100644 --- a/testsuite/lib/systemtap.exp +++ b/testsuite/lib/systemtap.exp @@ -88,5 +88,8 @@ proc stap_run_batch {args} { } set results [wait] verbose -log "wait results: $results" + # Crashed? + if {[llength $results] >= 5} {return 1} + # Not? return [lindex $results 3] } |