summaryrefslogtreecommitdiff
path: root/t/TEST
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-12-17 06:16:49 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-12-17 06:16:49 +0000
commitba1398cfaf53c91e3723ea35a8c3995b73c2a25e (patch)
tree324163aac3481fc98baf391630cf4f1d76ce0f58 /t/TEST
parentecfb2188cc8402c5360c09048342cf3a1aaafee7 (diff)
downloadperl-ba1398cfaf53c91e3723ea35a8c3995b73c2a25e.tar.gz
test harness tweak from Hans Mulder
p4raw-id: //depot/perl@4689
Diffstat (limited to 't/TEST')
-rwxr-xr-xt/TEST2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/TEST b/t/TEST
index 1f9190db05..0b674af3e7 100755
--- 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";
}