From 25114db1ce9c65a1b6844b9541c28f6e960821d8 Mon Sep 17 00:00:00 2001 From: fche Date: Wed, 23 Jan 2008 23:42:06 +0000 Subject: PR2521: configurable debuginfo search path 2008-01-23 Frank Ch. Eigler PR 2151 * tapsets.cxx (dwflpp::setup): Parametrize debuginfo_path. * stap.1.in: Document this. PR 2521. * systemtap.base/debugpath.exp: New test. --- testsuite/systemtap.base/debugpath.exp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 testsuite/systemtap.base/debugpath.exp (limited to 'testsuite/systemtap.base') 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 } -- cgit