blob: 0a171a7583ee8a84e407770b189fca977c55b04d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
set test "syscalls-run"
if {![installtest_p]} { untested $test; return }
spawn stap $srcdir/$subdir/syscalls.stp
set ok 0
expect {
-timeout 240
-re {[0-9]* kernel.function[^\r]*\r} { incr ok; exp_continue }
timeout { fail "$test (timeout)" }
eof { }
}
#FIXME does not handle case of hanging psyscalls.stp correctly
closewait
# 150 is conservative - it's larger than 100 to allow a bit of slop
# between the exit() call and the actual shutdown
if {$ok >= 100 && $ok < 150} { pass "$test ($ok)" } { fail "$test ($ok)" }
|