blob: edfddf6f7bbbbf3e19478c9c2aafc9423c1e4132 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
set test "syscalls-count"
if {![installtest_p]} { untested $test; return }
spawn stap -p2 $srcdir/$subdir/syscalls.stp
set ok 0
expect {
-timeout 30
-re {kernel.function[^\r]*sys_[^\r]*\r} { incr ok; exp_continue }
timeout { fail "$test (timeout)" }
eof { }
}
#FIXME does not handle case of hanging psyscalls.stp correctly
wait
if {$ok > 200 && $ok < 350} { pass "$test ($ok)" } { fail "$test ($ok)" }
|