Long double fixes from Spider Boardman.
[p5sagit/p5-mst-13.2.git] / t / TEST
diff --git a/t/TEST b/t/TEST
index 25b8a39..0b674af 100755 (executable)
--- a/t/TEST
+++ b/t/TEST
@@ -43,6 +43,9 @@ TESTING COMPILER
 --------------------------------------------------------------------------------
 EOT
 
+    $ENV{PERLCC_TIMEOUT} = 120 
+          if ($type eq 'compile' && !$ENV{PERLCC_TIMEOUT});
+
     $bad = 0;
     $good = 0;
     $total = @tests;
@@ -150,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";
        }