From 766d05e2cabc44805a9e12c4c309d1232f681f10 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Tue, 18 Aug 2009 22:01:53 +0200 Subject: 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. --- testsuite/systemtap.base/inlinedvars.exp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 testsuite/systemtap.base/inlinedvars.exp (limited to 'testsuite/systemtap.base/inlinedvars.exp') 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} -- cgit