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.exp10
1 files changed, 6 insertions, 4 deletions
diff --git a/testsuite/lib/systemtap.exp b/testsuite/lib/systemtap.exp
index 5b08c233..7fb1e317 100644
--- a/testsuite/lib/systemtap.exp
+++ b/testsuite/lib/systemtap.exp
@@ -104,8 +104,10 @@ 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]
+ if {[llength $results] >= 5} {
+ # Unexpected output. stap must have crashed
+ return -1
+ } else {
+ return [lindex $results 3]
+ }
}