Debian Codegraph @

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

raw
1 set test bz13338
2
3 spawn stap -vvl {process("/usr/bin/?").function("main")}
4 set ok 0
5 set ko 0
6 expect {
7 -timeout 60
8 # this will only match if sufficient *-debuginfo happens to be installed
9 -re {[process^\r\n]*function..main@[^\r\n]*\r\n} { incr ok; exp_continue }
10 # this is the buggy old case
11 {Expanded process("/usr/bin/[") to process("/usr/bin/[")\r\n} { incr ko }
12 # this will show if the base RPMs are installed, even without -debuginfo
13 -re {Expanded process[^\r\n]*\r\n} { incr ok; exp_continue }
14 timeout { fail "$test (timeout)" }
15 eof { }
16 }
17 catch { close }; catch { wait }
18 if {$ok > 0 && $ko == 0} then { pass "$test" } else { fail "$test $ok $ko" }