Another spot where a zero $test{$max} can make things go boom.
Jarkko Hietaniemi [Sun, 29 Jun 2003 09:34:47 +0000 (09:34 +0000)]
p4raw-id: //depot/perl@19879

lib/Test/Harness.pm

index 7534a34..b6a46d3 100644 (file)
@@ -523,7 +523,7 @@ sub _run_all_tests {
                 $failedtests{$tfile}{name} = $tfile;
             }
             elsif($results{seen}) {
-                if (@{$test{failed}}) {
+                if (@{$test{failed}} and $test{$max}) {
                     my ($txt, $canon) = canonfailed($test{max},$test{skipped},
                                                     @{$test{failed}});
                     print "$test{ml}$txt";