summaryrefslogtreecommitdiff
path: root/t/TEST
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-08-02 23:26:51 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-08-02 23:26:51 +0000
commit088b5126544704b6be8b34d667b27da6c5817855 (patch)
treec5e959e5dbe7ad0314a7066b17ab4d95ae06a437 /t/TEST
parent3cec1e99f66d0b2b1591ee7f764785f6c4903e5c (diff)
downloadperl-088b5126544704b6be8b34d667b27da6c5817855.tar.gz
t/TEST aesthetic tweak suggested by Jarkko
p4raw-id: //depot/maint-5.005/perl@1718
Diffstat (limited to 't/TEST')
-rwxr-xr-xt/TEST10
1 files changed, 9 insertions, 1 deletions
diff --git a/t/TEST b/t/TEST
index c1d1905731..3685c2a45f 100755
--- a/t/TEST
+++ b/t/TEST
@@ -48,6 +48,14 @@ EOT
$total = @tests;
$files = 0;
$totmax = 0;
+ $maxlen = 0;
+ foreach (@tests) {
+ $len = length;
+ $maxlen = $len if $len > $maxlen;
+ }
+ # +3 : we want three dots between the test name and the "ok"
+ # -2 : the .t suffix
+ $dotdotdot = $maxlen + 3 - 2;
while ($test = shift @tests) {
if ( $infinite{$test} && $type eq 'compile' ) {
@@ -59,7 +67,7 @@ EOT
}
$te = $test;
chop($te);
- print "$te" . '.' x (18 - length($te));
+ print "$te" . '.' x ($dotdotdot - length($te));
open(SCRIPT,"<$test") or die "Can't run $test.\n";
$_ = <SCRIPT>;