summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.samples/queue_demo.exp
blob: 71feddd66aae7d89ee5d7b8562629703b6ffc440 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
set test "queue_demo"
if {![installtest_p]} { untested $test; return }

spawn stap $srcdir/$subdir/queue_demo.stp
set ok 0
expect {
    -timeout 30
    -re {block-[^\r]*} { incr ok; exp_continue }
    timeout { fail "$test (timeout)" }
    eof { }
}

if {$ok > 4 && $ok < 10} { pass "$test" } { fail "$test" }