summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/uprobes.exp
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2008-11-13 16:24:30 +0100
committerMark Wielaard <mjw@redhat.com>2008-11-13 16:24:30 +0100
commitebcb173dc614db9a143febec19c8fc6a7b17cf2a (patch)
tree2761366ecee3c459000d79d60fff0bf8741de37c /testsuite/systemtap.base/uprobes.exp
parent588b83de0b2c3afdc06e9f84254f0b233c853736 (diff)
downloadsystemtap-steved-ebcb173dc614db9a143febec19c8fc6a7b17cf2a.tar.gz
systemtap-steved-ebcb173dc614db9a143febec19c8fc6a7b17cf2a.tar.xz
systemtap-steved-ebcb173dc614db9a143febec19c8fc6a7b17cf2a.zip
Testsuite, pick up the correct stap being tested when executing under sudo.
Diffstat (limited to 'testsuite/systemtap.base/uprobes.exp')
-rw-r--r--testsuite/systemtap.base/uprobes.exp4
1 files changed, 3 insertions, 1 deletions
diff --git a/testsuite/systemtap.base/uprobes.exp b/testsuite/systemtap.base/uprobes.exp
index 02a0fd33..c1b9968c 100644
--- a/testsuite/systemtap.base/uprobes.exp
+++ b/testsuite/systemtap.base/uprobes.exp
@@ -23,7 +23,9 @@ if {$rc == 0} then { pass "$test -p4" } else { fail "$test -p4" }
if {! [installtest_p]} { untested "$test -p5"; exec rm -f jennie.c jennie; return }
-spawn sudo stap -v $srcdir/$subdir/uprobes.stp -c "./jennie 1 2 3 4"
+# Pick up the stap being tested.
+set stapexe [exec /usr/bin/which stap]
+spawn sudo $stapexe -v $srcdir/$subdir/uprobes.stp -c "./jennie 1 2 3 4"
set ok 0
expect {
-re {^Pass[^\r\n]*\r\n} { exp_continue }