diff options
author | David Smith <dsmith@redhat.com> | 2010-03-09 14:22:56 -0600 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2010-03-09 14:22:56 -0600 |
commit | a8350a5d1c6e99d6929d1891767c6ddee015137a (patch) | |
tree | eca019f9bc418659043b84f04263a3204d963e2c /testsuite/systemtap.base | |
parent | 103c7c8d4bd48d81e06491da43c7e05ccacfb224 (diff) | |
download | systemtap-steved-a8350a5d1c6e99d6929d1891767c6ddee015137a.tar.gz systemtap-steved-a8350a5d1c6e99d6929d1891767c6ddee015137a.tar.xz systemtap-steved-a8350a5d1c6e99d6929d1891767c6ddee015137a.zip |
Update tests to check for uprobes instead of utrace.
* testsuite/systemtap.context/uprobe_stmt_num.exp: Change utrace test to
uprobes test.
* testsuite/systemtap.context/uprobe_uaddr.exp: Ditto.
* testsuite/systemtap.base/bz5274.exp: Ditto.
Diffstat (limited to 'testsuite/systemtap.base')
-rwxr-xr-x | testsuite/systemtap.base/bz5274.exp | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/testsuite/systemtap.base/bz5274.exp b/testsuite/systemtap.base/bz5274.exp index 9bb1f7c7..8da16048 100755 --- a/testsuite/systemtap.base/bz5274.exp +++ b/testsuite/systemtap.base/bz5274.exp @@ -2,27 +2,28 @@ set test "./bz5274" set tpath "$srcdir/$subdir/$test" set arch [exec uname -i] -if {$arch == "ppc64"} { - catch {exec gcc -o $test -g -m64 $srcdir/$subdir/$test.c} err -} else { - catch {exec gcc -o $test -g $srcdir/$subdir/$test.c} err -} - -if {$err == "" && [file exists $test]} then { pass "$test compile" -} else {fail "$test compile"} - if {! [installtest_p]} { - catch {exec rm -f $test} untested "$test -p5" return } -if {![utrace_p]} { - catch {exec rm -f $test} +if {![uprobes_p]} { untested "$test -p5" return } +if {$arch == "ppc64"} { + catch {exec gcc -o $test -g -m64 $srcdir/$subdir/$test.c} err +} else { + catch {exec gcc -o $test -g $srcdir/$subdir/$test.c} err +} + +if {$err == "" && [file exists $test]} then { + pass "$test compile" +} else { + fail "$test compile" +} + if {[catch {exec stap $tpath.stp -c "$srcdir/$subdir/$test.sh"} res]} { untested "$test longjmp to a uretprobed function" puts "$res" |