summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/labels.exp
diff options
context:
space:
mode:
authorStan Cox <scox@redhat.com>2009-04-13 17:51:58 -0400
committerStan Cox <scox@redhat.com>2009-04-13 17:51:58 -0400
commit8ca27b7dc58bf14e86cd40ae6246962fa580966d (patch)
treecd47c90e42a0956a87fee74aaa42fb9b5e90a930 /testsuite/systemtap.base/labels.exp
parentf5f4f6b9712d3a93e42d5c2f81d21bf229d65ab6 (diff)
downloadsystemtap-steved-8ca27b7dc58bf14e86cd40ae6246962fa580966d.tar.gz
systemtap-steved-8ca27b7dc58bf14e86cd40ae6246962fa580966d.tar.xz
systemtap-steved-8ca27b7dc58bf14e86cd40ae6246962fa580966d.zip
Improve -l output for .label
* tapsets.cxx (iterate_over_cu_labels): Treat -l specially so the output of a .label can be improved. * labels.stp: Test -l
Diffstat (limited to 'testsuite/systemtap.base/labels.exp')
-rw-r--r--testsuite/systemtap.base/labels.exp15
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/systemtap.base/labels.exp b/testsuite/systemtap.base/labels.exp
index 268bb320..88ed4619 100644
--- a/testsuite/systemtap.base/labels.exp
+++ b/testsuite/systemtap.base/labels.exp
@@ -55,8 +55,23 @@ if { $res != "" } {
pass "compiling labels.c -g"
}
+# list of labels
+
+spawn stap -l "process(\"$label_exepath\").function(\"*\").label(\"*\")"
+
+wait
+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 }
+ timeout { fail "$test (timeout)" }
+ eof { }
+}
+
+if {$ok == 1} { pass "$test -l .label" } { fail "$test -l .label $ok" }
+
# label in an executable
+set ok 0
verbose -log "spawn stap -c $label_exepath $label_stppath"
spawn stap -c $label_exepath $label_stppath