This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
test harness tweak from Hans Mulder
[perl5.git] / t / TEST
diff --git a/t/TEST b/t/TEST
index 1f9190d..0b674af 100755 (executable)
--- a/t/TEST
+++ b/t/TEST
@@ -153,7 +153,7 @@ EOT
        }
     }
     else {
-       $pct = sprintf("%.2f", ($files - $bad) / $files * 100);
+       $pct = $files ? sprintf("%.2f", ($files - $bad) / $files * 100) : "0.00";
        if ($bad == 1) {
            warn "Failed 1 test script out of $files, $pct% okay.\n";
        }