Debian Codegraph @

doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/lock-pushdown.exp

raw
1 set test "lock-pushdown"
2
3 if {! [installtest_p]} {
4 untested "$test"
5 return
6 }
7
8
9 set subtest "$test"
10 spawn stap -g $srcdir/$subdir/lock-pushdown.stp
11 set ok 0
12 expect {
13 -timeout 240
14 -re {^[a-z2]* pass\r\n} { incr ok; exp_continue }
15 eof { }
16 timeout { }
17 }
18 catch {close}; catch {wait}
19 if {$ok == 14} then { pass $subtest } else { fail $subtest }
20
21 set subtest "$test -u"
22 spawn stap -u -g $srcdir/$subdir/lock-pushdown.stp
23 set ok 0
24 expect {
25 -timeout 240
26 -re {^[a-z2]* pass\r\n} { incr ok; exp_continue }
27 eof { }
28 timeout { }
29 }
30 catch {close}; catch {wait}
31 if {$ok == 14} then { pass $subtest } else { fail $subtest }
32
33 set subtest "$test compat-4.3"
34 spawn stap -g --compatible=4.3 $srcdir/$subdir/lock-pushdown.stp
35 set ok 0
36 expect {
37 -timeout 240
38 -re {^[a-z2]* pass\r\n} { incr ok; exp_continue }
39 eof { }
40 timeout { }
41 }
42 catch {close}; catch {wait}
43 if {$ok == 14} then { pass $subtest } else { fail $subtest }
44