summaryrefslogtreecommitdiff
path: root/t/TEST
diff options
context:
space:
mode:
authorMichael G. Schwern <schwern@pobox.com>2001-11-26 22:38:24 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2001-11-27 13:23:28 +0000
commit2f6bec1d718b5383182c91d0fb6c38b9facd1c87 (patch)
tree303575f5e0d2412997555fa2929e3854520c6206 /t/TEST
parent330249434827c286fab76069a79e5c9b701923fc (diff)
downloadperl-2f6bec1d718b5383182c91d0fb6c38b9facd1c87.tar.gz
Remove redundant #! parsing. Deparse tests better.
Message-ID: <20011127033824.A17775@blackrider> p4raw-id: //depot/perl@13310
Diffstat (limited to 't/TEST')
-rwxr-xr-xt/TEST22
1 files changed, 9 insertions, 13 deletions
diff --git a/t/TEST b/t/TEST
index d55874981f..5ef012547b 100755
--- a/t/TEST
+++ b/t/TEST
@@ -163,19 +163,15 @@ EOT
$test = $OVER{$test} if exists $OVER{$test};
- open(SCRIPT,"<$test") or die "Can't run $test.\n";
- $_ = <SCRIPT>;
- close(SCRIPT) unless ($type eq 'deparse');
- if (/#!.*perl(.*)$/) {
- $switch = $1;
- if ($^O eq 'VMS') {
- # Must protect uppercase switches with "" on command line
- $switch =~ s/-([A-Z]\S*)/"-$1"/g;
- }
- }
- else {
- $switch = '';
- }
+ open(SCRIPT,"<$test") or die "Can't run $test.\n";
+ $_ = <SCRIPT>;
+ close(SCRIPT) unless ($type eq 'deparse');
+ if (/#!.*\bperl.*-\w*T/) {
+ $switch = '"-T"';
+ }
+ else {
+ $switch = '';
+ }
my $file_opts = "";
if ($type eq 'deparse') {