summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/inlinedvars.exp
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-08-18 22:01:53 +0200
committerMark Wielaard <mjw@redhat.com>2009-08-18 22:05:29 +0200
commit766d05e2cabc44805a9e12c4c309d1232f681f10 (patch)
tree58b24fe7c9f13560c834dfe199c8d04de0a649c8 /testsuite/systemtap.base/inlinedvars.exp
parent7bce6f87482ece5b55db98b589666a2adac9cd1f (diff)
downloadsystemtap-steved-766d05e2cabc44805a9e12c4c309d1232f681f10.tar.gz
systemtap-steved-766d05e2cabc44805a9e12c4c309d1232f681f10.tar.xz
systemtap-steved-766d05e2cabc44805a9e12c4c309d1232f681f10.zip
Add testcase for PR10533 (inlined vars) and 10537 (inlined labels - disabled)
Partial testcase for PR10533 (inlined vars) and 10537 (inlined labels) currently we cannot use the full testcase since stap doesn't support probing multiple instances of inlined labels. * testsuite/systemtap.base/inlinedvars.exp: New file. * testsuite/systemtap.base/inlinedvars.stp: Likewise. * testsuite/systemtap.base/inlinedvars.c: Likewise.
Diffstat (limited to 'testsuite/systemtap.base/inlinedvars.exp')
-rw-r--r--testsuite/systemtap.base/inlinedvars.exp26
1 files changed, 26 insertions, 0 deletions
diff --git a/testsuite/systemtap.base/inlinedvars.exp b/testsuite/systemtap.base/inlinedvars.exp
new file mode 100644
index 00000000..95950110
--- /dev/null
+++ b/testsuite/systemtap.base/inlinedvars.exp
@@ -0,0 +1,26 @@
+set test "inlinedvars"
+# XXX PR10537 - so only one result for now.
+#set ::result_string {call (22,84)
+#call2 (118,-22)
+#main (54,150)}
+set ::result_string {main (54,150)}
+
+set test_flags "additional_flags=-g"
+set test_flags "$test_flags additional_flags=-O2"
+
+set res [target_compile $srcdir/$subdir/$test.c $test.exe executable "$test_flags"]
+if { $res != "" } {
+ verbose "target_compile failed: $res" 2
+ fail "compiling $test.c"
+ untested "$test.c compile"
+ continue
+} else {
+ pass "$test.c compile"
+}
+
+if {[installtest_p] && [uprobes_p]} {
+ stap_run3 "$test" $srcdir/$subdir/$test.stp $test.exe -c ./$test.exe
+} else {
+ untested "$test"
+}
+#catch {exec rm -f $test.exe}