From 0d7d53dd805f636278858651a649d57fb87ba6c8 Mon Sep 17 00:00:00 2001 From: David Smith Date: Thu, 5 Nov 2015 10:52:10 -0600 Subject: [PATCH] Fix the 'if.exp' testcase so that the second test result matters. * testsuite/systemtap.base/if.exp: Make sure we look for the 'all_pass_string' twice, since the test case prints it twice. --- testsuite/systemtap.base/if.exp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/testsuite/systemtap.base/if.exp b/testsuite/systemtap.base/if.exp index 076287348..fa9df0aa2 100644 --- a/testsuite/systemtap.base/if.exp +++ b/testsuite/systemtap.base/if.exp @@ -3,11 +3,14 @@ set test "if" +# Note that we're looking for the all_pass_string twice, since the +# test case prints it twice. + foreach runtime [get_runtime_list] { if {$runtime != ""} { - stap_run $srcdir/$subdir/$test.stp no_load $all_pass_string \ + stap_run $srcdir/$subdir/$test.stp no_load "${all_pass_string}${all_pass_string}" \ --runtime=$runtime } else { - stap_run $srcdir/$subdir/$test.stp no_load $all_pass_string + stap_run $srcdir/$subdir/$test.stp no_load "${all_pass_string}${all_pass_string}" } } -- 2.43.5