summaryrefslogtreecommitdiffstats
path: root/testsuite/lib/systemtap.exp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/lib/systemtap.exp')
-rw-r--r--testsuite/lib/systemtap.exp3
1 files changed, 3 insertions, 0 deletions
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]
}