Make eq work again with utf8 (disabling the upgrading
[p5sagit/p5-mst-13.2.git] / t / TEST
diff --git a/t/TEST b/t/TEST
index 25b8a39..ef3d312 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;
@@ -87,9 +90,10 @@ EOT
            open(RESULTS,"./perl$switch $test |") or print "can't run.\n";
        }
        else {
-           open(RESULTS, "./perl -I../lib ../utils/perlcc ./$test "
-                        ."-run -verbose dcf -log ../compilelog |")
+           open(RESULTS, "./perl -I../lib ../utils/perlcc -o ./$test.plc ./$test "
+                        ." && ./$test.plc |")
                or print "can't compile.\n";
+        unlink "./$test.plc";
        }
 
        $ok = 0;
@@ -150,7 +154,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";
        }