summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/badkprobe.exp
blob: 1a1dbad58d0984c222d791ed80b32f53b5db935a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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 {
    -re "^WARNING: probe .*registration error.*" { pass $test }
    eof { fail "$test (eof)" }
    timeout { fail "$test (timeout)" }
}
catch {close}
catch {wait}