summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/debugpath.exp
blob: a3b3b051e94ffb83408af78b8dffee4e4353b4aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

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)" }
}

closewait

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)" }
}

closewait