summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.samples
diff options
context:
space:
mode:
authorWilliam Cohen <wcohen@redhat.com>2009-02-09 10:38:10 -0500
committerWilliam Cohen <wcohen@redhat.com>2009-02-09 20:43:26 -0500
commit890cb11e7e87596423ec8dcc67bcb7444b6b5b90 (patch)
tree4f67f40ad588b7ce2e2d1587fe5aad743f52b660 /testsuite/systemtap.samples
parenta903021435a22c55a28e470e342b5fce4de98738 (diff)
downloadsystemtap-steved-890cb11e7e87596423ec8dcc67bcb7444b6b5b90.tar.gz
systemtap-steved-890cb11e7e87596423ec8dcc67bcb7444b6b5b90.tar.xz
systemtap-steved-890cb11e7e87596423ec8dcc67bcb7444b6b5b90.zip
Move poll_map.exp and poll_map.stp to systemtap.base directory.
Diffstat (limited to 'testsuite/systemtap.samples')
-rw-r--r--testsuite/systemtap.samples/poll_map.exp14
-rwxr-xr-xtestsuite/systemtap.samples/poll_map.stp33
2 files changed, 0 insertions, 47 deletions
diff --git a/testsuite/systemtap.samples/poll_map.exp b/testsuite/systemtap.samples/poll_map.exp
deleted file mode 100644
index 5ade48e6..00000000
--- a/testsuite/systemtap.samples/poll_map.exp
+++ /dev/null
@@ -1,14 +0,0 @@
-set test "poll_map"
-if {![installtest_p]} { untested $test; return }
-
-spawn stap -g $srcdir/$subdir/poll_map.stp
-set ok 0
-expect {
- -timeout 400
- -ex "SUCCESS" { incr ok }
- timeout { fail "$test (timeout)" }
- eof { }
-}
-close
-wait
-if {$ok == 1} { pass "$test ($ok)" } { fail "$test ($ok)" }
diff --git a/testsuite/systemtap.samples/poll_map.stp b/testsuite/systemtap.samples/poll_map.stp
deleted file mode 100755
index cd39b433..00000000
--- a/testsuite/systemtap.samples/poll_map.stp
+++ /dev/null
@@ -1,33 +0,0 @@
-#! stap
-
-# test that polling loops do not exit when conflicts happen
-# see PR 1379
-
-global called, num_polls
-
-probe kernel.function( "sys_*" ).call {
- called[execname(),probefunc()]++
-}
-
-probe timer.ms(1000)
-{
- print("\n\n")
- num_to_do = 10
- foreach ([n,f] in called-) {
- printf("%s called %s\t%d times\n", n, f, called[n,f])
- num_to_do--
- if (num_to_do <= 0)
- break
- }
- delete called
- num_polls++
- if (num_polls > 30)
- exit()
-}
-
-probe end {
- if (num_polls <= 30)
- print ("FAIL\n")
- else
- print ("SUCCESS\n")
-}