Debian Codegraph @

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

raw
1 set test bz1027459
2
3 # Only run on make installcheck
4 if {! [installtest_p]} { untested "$test"; return }
5
6 exec touch trace1
7 spawn stap -wP $srcdir/$subdir/$test.stp
8 set ok 0
9 expect {
10 -timeout 240
11 -re {^hi\r\n} { incr ok; exp_continue }
12 timeout { fail "$test (timeout)" }
13 eof { }
14 }
15 catch {close}; catch {wait}
16 if {$ok >= 1} then { pass "$test -p5" } else { fail "$test -p5 ($ok)" }
17 exec rm -f trace1
18
19