summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.pass1-4/buildok.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/buildok.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/buildok.exp')
-rw-r--r--testsuite/systemtap.pass1-4/buildok.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/systemtap.pass1-4/buildok.exp b/testsuite/systemtap.pass1-4/buildok.exp
index 35c0e6c6..657f8558 100644
--- a/testsuite/systemtap.pass1-4/buildok.exp
+++ b/testsuite/systemtap.pass1-4/buildok.exp
@@ -2,7 +2,7 @@ set self buildok
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]
+ set rc [stap_run_batch $file]
# some tests are known to fail.
switch $test {
buildok/sched_test.stp {setup_kfail 1155 *-*-*}
@@ -10,5 +10,5 @@ foreach file [lsort [glob -nocomplain $srcdir/$self/*.stp]] {
buildok/process_test.stp {setup_kfail 9999 *-*-*}
buildok/syscall.stp {setup_kfail 9999 *-*-*}
}
- if {$rc == 0} { pass $test } else { fail "$test rc $rc" }
+ if {$rc == 0} { pass $test } else { fail $test }
}