summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/debugpath.exp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.base/debugpath.exp')
-rw-r--r--testsuite/systemtap.base/debugpath.exp3
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuite/systemtap.base/debugpath.exp b/testsuite/systemtap.base/debugpath.exp
index b0b12207..9c42295d 100644
--- a/testsuite/systemtap.base/debugpath.exp
+++ b/testsuite/systemtap.base/debugpath.exp
@@ -10,7 +10,8 @@ expect {
wait
set test "debugpath-good"
-spawn env SYSTEMTAP_DEBUGINFO_PATH=:/usr/lib/debug stap -e "probe kernel.function(\"sys_open\") {}" -p2
+set uname [exec /bin/uname -r]
+spawn env SYSTEMTAP_DEBUGINFO_PATH=/lib/modules/$uname/build stap -e "probe kernel.function(\"sys_open\") {}" -p2
expect {
-re {kernel.function.*pc=} { pass $test }
timeout { fail "$test (timeout2)" }