diff options
author | Dave Brolley <brolley@redhat.com> | 2009-04-16 12:01:52 -0400 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2009-04-16 12:01:52 -0400 |
commit | ae0430755d1605d934e9655d6f7206487fe6fc68 (patch) | |
tree | 2f48fb31a10334192b63ed19ac99d5e118306849 /testsuite/systemtap.base | |
parent | 44602d5b700d547cb1d560e90c0187c3fe66d613 (diff) | |
parent | bc33c23b2953b923446ea059e9991913d8b2cc3c (diff) | |
download | systemtap-steved-ae0430755d1605d934e9655d6f7206487fe6fc68.tar.gz systemtap-steved-ae0430755d1605d934e9655d6f7206487fe6fc68.tar.xz systemtap-steved-ae0430755d1605d934e9655d6f7206487fe6fc68.zip |
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'testsuite/systemtap.base')
-rw-r--r-- | testsuite/systemtap.base/labels.exp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/testsuite/systemtap.base/labels.exp b/testsuite/systemtap.base/labels.exp index 88ed4619..79e3f483 100644 --- a/testsuite/systemtap.base/labels.exp +++ b/testsuite/systemtap.base/labels.exp @@ -55,11 +55,42 @@ if { $res != "" } { pass "compiling labels.c -g" } +# line number error + +set ok 0 +spawn stap -l "process(\"$label_exepath\").function(\"foo@${label_srcpath}:10\").label(\"*\")" + +wait +expect { + -timeout 180 + -re {no match while resolving probe point} { incr ok; exp_continue } + timeout { fail "$test (timeout)" } + eof { } +} + +if {$ok == 1} { pass "$test :N .label" } { fail "$test :N .label $ok" } + +# line number + +set ok 0 +spawn stap -l "process(\"$label_exepath\").function(\"foo@${label_srcpath}:4\").label(\"*\")" + +wait +expect { + -timeout 180 + -re {process.*function.*labels.c:5...label..init_an_int} { incr ok; exp_continue } + timeout { fail "$test (timeout)" } + eof { } +} + +if {$ok == 1} { pass "$test :N .label" } { fail "$test :N .label $ok" } + # list of labels spawn stap -l "process(\"$label_exepath\").function(\"*\").label(\"*\")" wait +set ok 0 expect { -timeout 180 -re {process.*function.*labels.c:5...label..init_an_int.*process.*function.*labels.c:16...label..init_an_int.*process.*function.*labels.c:18...label..init_an_int_again} { incr ok; exp_continue } |