X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2FTEST;h=ef3d312a46f36f9fea263ee1148af815e7b63b9d;hb=7bbb0251073a77c17bc1102da053cd50c26c0e81;hp=25b8a395bacc6ed4b3a2ab0e0be5c83e7c96d6dd;hpb=e824fb2c869ac05c8b4bf94a03f1e1121a0963c7;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/TEST b/t/TEST index 25b8a39..ef3d312 100755 --- 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"; }