summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.pass1-4/semok.exp
diff options
context:
space:
mode:
authorfche <fche>2006-09-09 22:30:43 +0000
committerfche <fche>2006-09-09 22:30:43 +0000
commit0ecbca4cb58a9fc7057ff44cc4693010e7c3c7b7 (patch)
treea9e4c1aa3c07af8bc65f5646fc78f59a86d96120 /testsuite/systemtap.pass1-4/semok.exp
parent46b84a80a83501d9a83856c255b74100be1717b9 (diff)
downloadsystemtap-steved-0ecbca4cb58a9fc7057ff44cc4693010e7c3c7b7.tar.gz
systemtap-steved-0ecbca4cb58a9fc7057ff44cc4693010e7c3c7b7.tar.xz
systemtap-steved-0ecbca4cb58a9fc7057ff44cc4693010e7c3c7b7.zip
2006-09-09 Frank Ch. Eigler <fche@elastic.org>
* lib/systemtap.exp (stap_run_batch): New helper routine. * systemtap.pass1-4/*.exp: Use it instead of catch/exec/>>& hack.
Diffstat (limited to 'testsuite/systemtap.pass1-4/semok.exp')
-rw-r--r--testsuite/systemtap.pass1-4/semok.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/systemtap.pass1-4/semok.exp b/testsuite/systemtap.pass1-4/semok.exp
index f02c8643..b32b6d4e 100644
--- a/testsuite/systemtap.pass1-4/semok.exp
+++ b/testsuite/systemtap.pass1-4/semok.exp
@@ -2,6 +2,6 @@ set self semok
foreach file [lsort [glob -nocomplain $srcdir/$self/*.stp]] {
set test $self/[file tail $file]
verbose -log "Running $file"
- set rc [catch {exec $file >>& systemtap.log} err]
- if {$rc == 0} { pass $test } else { fail "$test rc $rc" }
+ set rc [stap_run_batch $file]
+ if {$rc == 0} { pass $test } else { fail $test }
}