From: Gurusamy Sarathy Date: Thu, 18 Jun 1998 20:26:59 +0000 (+0000) Subject: close child pipe in t/TEST, other cosmetic tweaks X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bb36583767bf215eda3dc8674c27c74a3313c6d7;p=p5sagit%2Fp5-mst-13.2.git close child pipe in t/TEST, other cosmetic tweaks p4raw-id: //depot/perl@1147 --- diff --git a/t/TEST b/t/TEST index 44e6e40..df121e8 100755 --- a/t/TEST +++ b/t/TEST @@ -44,127 +44,131 @@ else { _testprogs('perl', @ARGV); _testprogs('compile', @ARGV) if (-e "../testcompile"); -sub _testprogs -{ - $type = shift @_; - @tests = @_; +sub _testprogs { + $type = shift @_; + @tests = @_; - print " + print <<'EOT' if ($type eq 'compile'); -------------------------------------------------------------------------------- TESTING COMPILER -------------------------------------------------------------------------------- -" if ($type eq 'compile'); - - $bad = 0; - $good = 0; - $total = @tests; - $files = 0; - $totmax = 0; -while ($test = shift @tests) { - - if ( $infinite{$test} && $type eq 'compile' ) { - print STDERR "$test creates infinite loop! Skipping.\n"; - next; +EOT + + $bad = 0; + $good = 0; + $total = @tests; + $files = 0; + $totmax = 0; + while ($test = shift @tests) { + + if ( $infinite{$test} && $type eq 'compile' ) { + print STDERR "$test creates infinite loop! Skipping.\n"; + next; } - if ($test =~ /^$/) { - next; - } - $te = $test; - chop($te); - print "$te" . '.' x (18 - length($te)); - if ($sharpbang) { - -x $test || (print "isn't executable.\n"); - - if ($type eq 'perl') - { open(RESULTS, "./$test |") || (print "can't run.\n"); } - else - { - open(RESULTS, "./perl -I../lib ../utils/perlcc ./$test -run -verbose dcf -log ../compilelog |") - || (print "can't compile.\n"); + if ($test =~ /^$/) { + next; } - } else { - open(SCRIPT,"$test") || die "Can't run $test.\n"; - $_ =