summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.printf/out2b.exp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.printf/out2b.exp')
-rw-r--r--testsuite/systemtap.printf/out2b.exp16
1 files changed, 5 insertions, 11 deletions
diff --git a/testsuite/systemtap.printf/out2b.exp b/testsuite/systemtap.printf/out2b.exp
index 085cfa14..fc3301ab 100644
--- a/testsuite/systemtap.printf/out2b.exp
+++ b/testsuite/systemtap.printf/out2b.exp
@@ -3,13 +3,7 @@ set TEST_NAME "$subdir/out2b"
if {![installtest_p]} { untested $TEST_NAME; return }
-# Look for stap_merge in the toplevel build directory
-# and if that fails, use "which" to try to find a copy
-# in the path.
-set stap_merge_path "$srcdir/../runtime/staprun/stap_merge.tcl"
-if (![file executable $stap_merge_path]) {
- catch {exec which stap_merge} stap_merge_path
-}
+set stap_merge_path "$srcdir/$subdir/stap_merge.tcl"
if (![file executable $stap_merge_path]) {
fail "$TEST_NAME : could not find stap_merge"
return
@@ -24,24 +18,24 @@ if {[catch {exec mktemp -t staptestXXXXX} tmpfile]} {
if {[catch {exec stap -b -o $tmpfile $test} res]} {
untested $TEST_NAME
puts "stap failed: $res"
- as_root {/bin/rm -f [glob ${tmpfile}*]}
+ as_root "/bin/rm -f [glob ${tmpfile}*]"
return
}
if {[catch {eval [list exec $stap_merge_path -o $tmpfile] [glob "${tmpfile}_*"]} res]} {
puts "merge failed: $res"
fail "$TEST_NAME failed"
- as_root {/bin/rm -f [glob ${tmpfile}*]}
+ as_root "/bin/rm -f [glob ${tmpfile}*]"
return
}
if {[catch {exec cmp $tmpfile $srcdir/$subdir/large_output} res]} {
puts "$res"
fail "$TEST_NAME failed"
- as_root {/bin/rm -f [glob ${tmpfile}*]}
+ as_root "/bin/rm -f [glob ${tmpfile}*]"
return
}
pass "$TEST_NAME passed"
-as_root {/bin/rm -f [glob ${tmpfile}*]}
+as_root "/bin/rm -f [glob ${tmpfile}*]"