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