X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2FTEST;h=69cf0c6e92fc584ef3609f452aa7f3484026f1ea;hb=2c15bef39460c09b2a7846a30a4fc1fc1c4f93e4;hp=c1d1905731bbdc21b7bf82f70c8038496c4f04bb;hpb=3fb91a5e46aea49ba3ce96c8d95ff739f2fc0307;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/TEST b/t/TEST index c1d1905..69cf0c6 100755 --- a/t/TEST +++ b/t/TEST @@ -1,6 +1,6 @@ #!./perl -# Last change: Fri Jan 10 09:57:03 WET 1997 +# Last change: Fri May 28 03:16:57 BST 1999 # This is written in a peculiar style, since we're trying to avoid # most of the constructs we'll be testing for. @@ -43,11 +43,22 @@ TESTING COMPILER -------------------------------------------------------------------------------- EOT + $ENV{COMPILE_TIMEOUT} = 120 + if ($type eq 'compile' && !$ENV{COMPILE_TIMEOUT}); + $bad = 0; $good = 0; $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 +70,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"; $_ =