summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.base')
-rwxr-xr-xtestsuite/systemtap.base/bz5274.exp25
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"