summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/debugpath.exp
diff options
context:
space:
mode:
authorddomingo <ddomingo@redhat.com>2008-10-06 16:19:08 +1000
committerddomingo <ddomingo@redhat.com>2008-10-06 16:19:08 +1000
commit56bf4a62d293f8a353a63833cf945024d1d77ae8 (patch)
tree66d37792213c0e3b7cf5d6a11cdc3800c45bac87 /testsuite/systemtap.base/debugpath.exp
parentd77fecabffb83a90c7ef7b6ad81a183beb345330 (diff)
parent5311c037f83f66967f9de4cc66815f93940bb005 (diff)
downloadsystemtap-steved-56bf4a62d293f8a353a63833cf945024d1d77ae8.tar.gz
systemtap-steved-56bf4a62d293f8a353a63833cf945024d1d77ae8.tar.xz
systemtap-steved-56bf4a62d293f8a353a63833cf945024d1d77ae8.zip
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'testsuite/systemtap.base/debugpath.exp')
-rw-r--r--testsuite/systemtap.base/debugpath.exp12
1 files changed, 11 insertions, 1 deletions
diff --git a/testsuite/systemtap.base/debugpath.exp b/testsuite/systemtap.base/debugpath.exp
index 9c42295d..bc92c081 100644
--- a/testsuite/systemtap.base/debugpath.exp
+++ b/testsuite/systemtap.base/debugpath.exp
@@ -11,7 +11,17 @@ wait
set test "debugpath-good"
set uname [exec /bin/uname -r]
-spawn env SYSTEMTAP_DEBUGINFO_PATH=/lib/modules/$uname/build stap -e "probe kernel.function(\"sys_open\") {}" -p2
+
+# Guess where debuginfo is installed
+if [file isdirectory /usr/lib/debug/lib/modules/$uname] {
+ set debuginfo_path "/usr/lib/debug/lib/modules/$uname"
+} elseif [file isdirectory /lib/modules/$uname/build] {
+ set debuginfo_path "/lib/modules/$uname/build"
+} else {
+ set debuginfo_path "/lib/modules/$uname"
+}
+
+spawn env SYSTEMTAP_DEBUGINFO_PATH=$debuginfo_path stap -e "probe kernel.function(\"sys_open\") {}" -p2
expect {
-re {kernel.function.*pc=} { pass $test }
timeout { fail "$test (timeout2)" }