Debian Codegraph @

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

raw
1 # Test the @probewrite predicate.
2 set test "probewrite"
3
4 set ok 0
5
6 spawn stap $srcdir/$subdir/${test}_1.stp
7 expect {
8 "PASS" {incr ok; exp_continue}
9 }
10
11 spawn stap $srcdir/$subdir/${test}_2.stp
12 expect {
13 "PASS" {incr ok; exp_continue}
14 }
15
16 exec gcc -g -o $test $srcdir/$subdir/${test}_3.c
17
18 spawn stap -g $srcdir/$subdir/${test}_3.stp -c ./$test
19 expect {
20 "PASS" {incr ok; exp_continue}
21 }
22
23 exec rm $test
24
25 if { $ok == 3 } { pass $test } { fail $test }