diff options
author | Dave Brolley <brolley@redhat.com> | 2009-04-21 11:11:21 -0400 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2009-04-21 11:11:21 -0400 |
commit | 623a41aeb47995f6b5790e38f9e0e10959f98b4e (patch) | |
tree | e79bd792bfc682f842f804af1c119a751ae18c0c /testsuite/systemtap.base/bz10078.exp | |
parent | 09fd19d66b9e3318e9e33f604eb2dbe623955123 (diff) | |
parent | d0ea46ceac2e72fe0b86269ea50c004711148158 (diff) | |
download | systemtap-steved-623a41aeb47995f6b5790e38f9e0e10959f98b4e.tar.gz systemtap-steved-623a41aeb47995f6b5790e38f9e0e10959f98b4e.tar.xz systemtap-steved-623a41aeb47995f6b5790e38f9e0e10959f98b4e.zip |
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'testsuite/systemtap.base/bz10078.exp')
-rw-r--r-- | testsuite/systemtap.base/bz10078.exp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/testsuite/systemtap.base/bz10078.exp b/testsuite/systemtap.base/bz10078.exp new file mode 100644 index 00000000..cad3a3a8 --- /dev/null +++ b/testsuite/systemtap.base/bz10078.exp @@ -0,0 +1,35 @@ +set test bz10078 + +catch {exec gcc -g -o $test $srcdir/$subdir/$test.c} err +if {$err == "" && [file exists $test]} then { pass "$test compile" } else { fail "$test compile" } + +if {![utrace_p]} { + catch {exec rm -f $test} + untested "$test -p4" + untested "$test -p5" + return +} + +set rc [stap_run_batch $srcdir/$subdir/$test.stp] +if {$rc == 0} then { pass "$test -p4" } else { fail "$test -p4" } + +if {! [installtest_p]} { + catch {exec rm -f $test} + untested "$test -p5" + return +} + +# Pick up the stap being tested. +set stapexe [exec /usr/bin/which stap] +spawn sudo $stapexe $srcdir/$subdir/$test.stp -c ./$test +set ok 0 +expect { + -timeout 60 + -re {mkpoint[^\r\n]* returns\r\n} { incr ok; exp_continue } + -re {1,2\r\n} { incr ok; exp_continue } + timeout { fail "$test (timeout)" } + eof { } +} +wait +if {$ok == 3} then { pass "$test -p5" } else { fail "$test -p5 ($ok)" } +exec rm -f $test |