Stop harness from printing summary table header for each row in table
[p5sagit/p5-mst-13.2.git] / lib / Test / Harness.pm
index 349339d..2024d24 100644 (file)
@@ -34,11 +34,11 @@ Test::Harness - Run Perl standard test scripts with statistics
 
 =head1 VERSION
 
-Version 2.57_06
+Version 2.58
 
 =cut
 
-$VERSION = '2.57_06';
+$VERSION = '2.58_01';
 
 # Backwards compatibility for exportable variable names.
 *verbose  = *Verbose;
@@ -561,10 +561,9 @@ sub get_results {
         if ($tot->{bonus}) {
             my($fmt_top, $fmt) = _create_fmts("Passed TODO",$todo_passed);
             # Now write to formats
+            $out .= swrite( $fmt_top );
             for my $script (sort keys %{$todo_passed||{}}) {
                 my $Curtest = $todo_passed->{$script};
-
-                $out .= swrite( $fmt_top );
                 $out .= swrite( $fmt, @{ $Curtest }{qw(name estat wstat max failed canon)} );
             }
         }
@@ -584,9 +583,9 @@ sub get_results {
         my($fmt_top, $fmt1, $fmt2) = _create_fmts("Failed Test",$failedtests);
 
         # Now write to formats
+        $out .= swrite( $fmt_top );
         for my $script (sort keys %$failedtests) {
             my $Curtest = $failedtests->{$script};
-            $out .= swrite( $fmt_top );
             $out .= swrite( $fmt1, @{ $Curtest }{qw(name estat wstat max failed canon)} );
             $out .= swrite( $fmt2, $Curtest->{canon} );
         }