summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/badkprobe.exp
blob: efc0669555b15a28ee2bebb423fafe8879f94cee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
set script "probe kernel.statement(-1).absolute {} probe timer.s(1) { exit() }"
set test "bad kprobe registration"

if {! [installtest_p]} { untested $test; return }

spawn stap -g -w -e "$script"
expect {
    -timeout 60
    -re "^WARNING: probe .*registration error.*" { pass $test }
    eof { fail "$test (eof)" }
    timeout { fail "$test (timeout)" }
}
catch {close}
catch {wait}