summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/global_stat.exp
blob: 704556f60b8495af0c2bd0ce2b9694fac1a07f19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
if {![installtest_p]} {
    untested global_stat
    return
}

spawn stap -e {global var; probe never {var<<<1} probe begin {exit()}}
expect {
    -timeout 60
    "var @count=0x0" { pass "global_stat" }
    timeout {fail "global_stat: unexpected timeout"}
    eof {fail "global_stat: unexpected EOF"}
}
wait;close