summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/ChangeLog5
-rw-r--r--testsuite/systemtap.base/debugpath.exp18
2 files changed, 23 insertions, 0 deletions
diff --git a/testsuite/ChangeLog b/testsuite/ChangeLog
index e13092ac..6d3bf44d 100644
--- a/testsuite/ChangeLog
+++ b/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2008-01-23 Frank Ch. Eigler <fche@elastic.org>
+
+ PR 2521.
+ * systemtap.base/debugpath.exp: New test.
+
2008-01-18 Frank Ch. Eigler <fche@elastic.org>
* configure.ac: Bump version to 0.6.1.
diff --git a/testsuite/systemtap.base/debugpath.exp b/testsuite/systemtap.base/debugpath.exp
new file mode 100644
index 00000000..67b9eb70
--- /dev/null
+++ b/testsuite/systemtap.base/debugpath.exp
@@ -0,0 +1,18 @@
+
+set test "debugpath-bad"
+spawn env SYSTEMTAP_DEBUGINFO_PATH=/dev/null stap -e "probe kernel.function(\"sys_open\") {}" -p4
+expect {
+ -re {^semantic error:.*missing.*debuginfo} { pass $test }
+ timeout { fail "$test (timeout1)" }
+ eof { fail "$test (eof)" }
+}
+catch { close; wait }
+
+set test "debugpath-good"
+spawn env SYSTEMTAP_DEBUGINFO_PATH=:/usr/lib/debug stap -e "probe kernel.function(\"sys_open\") {}" -p2
+expect {
+ -re {kernel.function.*pc=} { pass $test }
+ timeout { fail "$test (timeout2)" }
+ eof { fail "$test (eof)" }
+}
+catch { close ; wait }