summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/global_stat.exp
blob: 8517785b90c814ae79b09a628cdab631865cbccf (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; catch { close }