summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.samples/arith.exp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.samples/arith.exp')
-rw-r--r--testsuite/systemtap.samples/arith.exp14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/systemtap.samples/arith.exp b/testsuite/systemtap.samples/arith.exp
new file mode 100644
index 00000000..cd00ab71
--- /dev/null
+++ b/testsuite/systemtap.samples/arith.exp
@@ -0,0 +1,14 @@
+set test "arith"
+if {![installtest_p]} { untested $test; return }
+
+spawn stap -DMAXNESTING=5 $srcdir/$subdir/arith.stp
+set ok 0
+expect {
+ -timeout 30
+ -re {passes: [0-9]* failures: 0} { incr ok }
+ timeout { fail "$test (timeout)" }
+ eof { }
+}
+close
+wait
+if {$ok == 1} { pass "$test" } { fail "$test" }