summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.samples/queue_demo.exp
blob: 49dfac05ee82742dcbd399d1a612861d61b0aca3 (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 240
    -re {block-[^\r]*} { incr ok; exp_continue }
    timeout { fail "$test (timeout)" }
    eof { }
}

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