summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.stress
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.stress')
-rw-r--r--testsuite/systemtap.stress/conversions.exp2
-rw-r--r--testsuite/systemtap.stress/whitelist.exp5
2 files changed, 3 insertions, 4 deletions
diff --git a/testsuite/systemtap.stress/conversions.exp b/testsuite/systemtap.stress/conversions.exp
index 9c2c2fa9..89d89250 100644
--- a/testsuite/systemtap.stress/conversions.exp
+++ b/testsuite/systemtap.stress/conversions.exp
@@ -17,7 +17,7 @@ foreach value {0 0xffffffff 0xffffffffffffffff} {
timeout { fail "$test (timeout)" }
}
verbose -log "done exp $test $errs"
- wait
+ closewait
if {$errs == 14} { pass $test } else { fail "$test ($errs)" }
verbose -log "done $test $errs"
}
diff --git a/testsuite/systemtap.stress/whitelist.exp b/testsuite/systemtap.stress/whitelist.exp
index 4a31c124..f7c0bf16 100644
--- a/testsuite/systemtap.stress/whitelist.exp
+++ b/testsuite/systemtap.stress/whitelist.exp
@@ -320,8 +320,7 @@ proc whitelist_run { TEST_NAME {LOAD_GEN_FUNCTION ""} args } {
timeout { set detail "stap timeout"; exec kill -INT -[exp_pid -i $stap_id] }
eof { set failed 0 }
}
- catch {close -i $stap_id}
- wait -i $stap_id
+ closewait -i $stap_id
if {$failed} { puts "whitelist_run failure \($detail\)" }
}
@@ -353,7 +352,7 @@ proc runbenchs {} {
set donepos [lsearch $idlist $expect_out(spawn_id)]
set idlist [lreplace $idlist $donepos $donepos]
incr runningcount -1
- wait -i $expect_out(spawn_id)
+ closewait -i $expect_out(spawn_id)
} timeout {
break
}