X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2FTEST;h=ef3d312a46f36f9fea263ee1148af815e7b63b9d;hb=579de012b31c51e885b06b54d62f0b1ebd2f0b18;hp=1f9190db050a4ee9bd2a07ad3fd842c47b7d3c33;hpb=9636a016720fa29929de1fb9fc4ead4cfbfc4af8;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/TEST b/t/TEST index 1f9190d..ef3d312 100755 --- a/t/TEST +++ b/t/TEST @@ -90,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; @@ -153,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"; }