Debian Codegraph @

doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/warnings.exp

raw
1 set test "warnings"
2
3 spawn stap -p4 $srcdir/$subdir/warnings.stp
4 set ok 0
5 expect {
6 -timeout 180
7 -re {^WARNING:[^\r\n]*\r\n} { incr ok; exp_continue }
8 -re {^[^\r\n]*.ko\r\n} { incr ok; exp_continue }
9 -re {^[^\r]*source:[^\r\n]*\r\n} {exp_continue}
10 -re {^[^\r\n]*\^[^\r\n]*\r\n} {exp_continue}
11 timeout { fail "$test (timeout)" }
12 eof { }
13 }
14 catch { close }; catch { wait }
15 if {$ok == 12} {
16 pass $test
17 } else {
18 fail "$test ($ok)"
19 }