diff options
author | Mark Wielaard <mjw@redhat.com> | 2008-11-13 16:24:30 +0100 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2008-11-13 16:24:30 +0100 |
commit | ebcb173dc614db9a143febec19c8fc6a7b17cf2a (patch) | |
tree | 2761366ecee3c459000d79d60fff0bf8741de37c /testsuite/systemtap.base/uprobes.exp | |
parent | 588b83de0b2c3afdc06e9f84254f0b233c853736 (diff) | |
download | systemtap-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.exp | 4 |
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 } |