summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/optim.exp
diff options
context:
space:
mode:
authorfche <fche>2007-06-04 16:21:50 +0000
committerfche <fche>2007-06-04 16:21:50 +0000
commita747e1c953dd4296895fa699c40eec79cb13a357 (patch)
tree0114f5cc0acdb6f49def6d21ca3b72a1af09efb1 /testsuite/systemtap.base/optim.exp
parentf74fb737d7ed8c2b8ea1b4c6c49be89f47cc1d21 (diff)
downloadsystemtap-steved-a747e1c953dd4296895fa699c40eec79cb13a357.tar.gz
systemtap-steved-a747e1c953dd4296895fa699c40eec79cb13a357.tar.xz
systemtap-steved-a747e1c953dd4296895fa699c40eec79cb13a357.zip
2007-06-04 Frank Ch. Eigler <fche@elastic.org>
PR 4589. * systemtap.base/optim.*: Rewritten, simplified.
Diffstat (limited to 'testsuite/systemtap.base/optim.exp')
-rw-r--r--testsuite/systemtap.base/optim.exp14
1 files changed, 12 insertions, 2 deletions
diff --git a/testsuite/systemtap.base/optim.exp b/testsuite/systemtap.base/optim.exp
index 7241aeaf..41e22d7a 100644
--- a/testsuite/systemtap.base/optim.exp
+++ b/testsuite/systemtap.base/optim.exp
@@ -1,3 +1,13 @@
set test "optim"
-
-stap_run $srcdir/$subdir/$test.stp no_load $all_pass_string
+if {![installtest_p]} { untested $test; return }
+spawn stap $srcdir/$subdir/optim.stp
+set ok 0
+expect {
+ -timeout 30
+ -re {i=1} { incr ok }
+ timeout { fail "$test (timeout)" }
+ eof { }
+}
+close
+wait
+if {$ok == 1} { pass $test } { fail $test }