]> sourceware.org Git - systemtap.git/commitdiff
Fix the 'if.exp' testcase so that the second test result matters.
authorDavid Smith <dsmith@redhat.com>
Thu, 5 Nov 2015 16:52:10 +0000 (10:52 -0600)
committerDavid Smith <dsmith@redhat.com>
Thu, 5 Nov 2015 16:52:10 +0000 (10:52 -0600)
* 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

index 076287348a92e13ea0d78c8366456d43ef45b2c8..fa9df0aa297fed8fbc474e50ad6f15cdb6a78cbd 100644 (file)
@@ -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}"
     }
 }
This page took 0.031016 seconds and 5 git commands to generate.