diff options
author | Dave Brolley <brolley@redhat.com> | 2009-08-06 14:35:08 -0400 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2009-08-06 14:35:08 -0400 |
commit | 6dc27b9452aa2f52dfb3414c0ad8192ec65fb2d1 (patch) | |
tree | e4ddccdf7613a7788ad74bbc18727d35abf133fe /testsuite/systemtap.base/statement.exp | |
parent | 3c96130fde2f114d0ecca13870ac91b00219cf6c (diff) | |
parent | cab97f033153b93d1d26388a25a65052cf36fc8d (diff) | |
download | systemtap-steved-6dc27b9452aa2f52dfb3414c0ad8192ec65fb2d1.tar.gz systemtap-steved-6dc27b9452aa2f52dfb3414c0ad8192ec65fb2d1.tar.xz systemtap-steved-6dc27b9452aa2f52dfb3414c0ad8192ec65fb2d1.zip |
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'testsuite/systemtap.base/statement.exp')
-rw-r--r-- | testsuite/systemtap.base/statement.exp | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/testsuite/systemtap.base/statement.exp b/testsuite/systemtap.base/statement.exp new file mode 100644 index 00000000..d8fce8d8 --- /dev/null +++ b/testsuite/systemtap.base/statement.exp @@ -0,0 +1,38 @@ +set test bz6905 + +catch {exec gcc -g -o $test $srcdir/$subdir/$test.c} err +if {$err == "" && [file exists $test]} then { pass "$test compile" } else { fail "$test compile" } + +spawn stap -p2 $srcdir/$subdir/$test.stp +set hint 0 +set probes 0 +expect { + -timeout 60 + -re "# probes" { incr hint; exp_continue } + -re {process.*statement.*} { incr probes; exp_continue } + timeout { fail "$test (timeout)" } + eof { } +} +wait +if { $hint == 1 && $probes > 0 } then { pass "$test -p2" } else { fail "$test -p2 ($probes)" } +exec rm -f $test + +set test bz10294 + +catch {exec gcc -g -o $test $srcdir/$subdir/$test.c} err +if {$err == "" && [file exists $test]} then { pass "$test compile" } else { fail "$test compile" } + +spawn stap -p2 $srcdir/$subdir/$test.stp +set hint 0 +set probes 0 +expect { + -timeout 60 + -re "# probes" { incr hint; exp_continue } + -re {process.*statement.*} { incr probes; exp_continue } + timeout { fail "$test (timeout)" } + eof { } +} +wait +if { $hint == 1 && $probes == 1 } then { pass "$test -p2" } else { fail "$test -p2 ($probes)" } +exec rm -f $test + |