summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.samples/syscalls2.exp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.samples/syscalls2.exp')
-rw-r--r--testsuite/systemtap.samples/syscalls2.exp14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/systemtap.samples/syscalls2.exp b/testsuite/systemtap.samples/syscalls2.exp
new file mode 100644
index 00000000..c817f23f
--- /dev/null
+++ b/testsuite/systemtap.samples/syscalls2.exp
@@ -0,0 +1,14 @@
+set test "syscalls-run"
+if {![installtest_p]} { untested $test; return }
+spawn stap $srcdir/$subdir/syscalls.stp
+set ok 0
+expect {
+ -timeout 60 -re {[0-9]* kernel.function[^\r]*\r} { incr ok; exp_continue }
+ timeout { fail "$test (timeout)" }
+ eof { }
+}
+#FIXME does not handle case of hanging psyscalls.stp correctly
+wait
+# 150 is conservative - it's larger than 100 to allow a bit of slop
+# between the exit() call and the actual shutdown
+if {$ok >= 100 && $ok < 150} { pass "$test ($ok)" } { fail "$test ($ok)" }