diff options
author | Jim Keniston <jkenisto@us.ibm.com> | 2008-10-03 15:44:32 -0700 |
---|---|---|
committer | Jim Keniston <jkenisto@us.ibm.com> | 2008-10-03 15:44:32 -0700 |
commit | 6c492b1e782c551baf4c05c20939358a8da42964 (patch) | |
tree | 384f86dd4035eac44bc616496f69e2b5dc6fa73c /testsuite/systemtap.base/bz6850.exp | |
parent | b678f438a390da7f9a6712a22c95d069dfd6643b (diff) | |
download | systemtap-steved-6c492b1e782c551baf4c05c20939358a8da42964.tar.gz systemtap-steved-6c492b1e782c551baf4c05c20939358a8da42964.tar.xz systemtap-steved-6c492b1e782c551baf4c05c20939358a8da42964.zip |
PR 6850
Fix handling of fork with uretprobe_instances outstanding.
Add regression test.
Diffstat (limited to 'testsuite/systemtap.base/bz6850.exp')
-rw-r--r-- | testsuite/systemtap.base/bz6850.exp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/testsuite/systemtap.base/bz6850.exp b/testsuite/systemtap.base/bz6850.exp new file mode 100644 index 00000000..cd56ddce --- /dev/null +++ b/testsuite/systemtap.base/bz6850.exp @@ -0,0 +1,21 @@ +set test bz6850 + +catch {exec gcc -g -o bz6850 $srcdir/$subdir/bz6850.c} err +if {$err == "" && [file exists bz6850]} then { pass "$test compile" } else { fail "$test compile" } + +set rc [stap_run_batch $srcdir/$subdir/bz6850.stp] +if {$rc == 0} then { pass "$test -p4" } else { fail "$test -p4" } + +if {! [installtest_p]} { untested "$test -p5"; return } + +spawn sudo stap $srcdir/$subdir/bz6850.stp -c ./bz6850 +expect { + -timeout 60 + -re {[^\r\n]*called\r\n} { exp_continue } + -re {[^\r\n]*returns\r\n} { exp_continue } + timeout { fail "$test (timeout)" } + eof { } +} +wait +if {[file exists bz6850_pass]} then { pass "$test -p5" } else { fail "$test -p5" } +exec rm -f bz6850_pass bz6850 |