summaryrefslogtreecommitdiff
path: root/t/TEST
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2010-07-09 10:42:41 +0100
committerNicholas Clark <nick@ccl4.org>2010-07-09 10:43:47 +0100
commita2d3de138935fbe8f4190ee9176b8fdd812a91d5 (patch)
tree2e8ac86490af2eab15e9ab39d7437179bccc222c /t/TEST
parent0784aae0d7d156b848a785db9f8ed8ce6ada8166 (diff)
downloadperl-a2d3de138935fbe8f4190ee9176b8fdd812a91d5.tar.gz
In t/harness, clear PERL5LIB, PERLLIB, PERL5OPT as t/TEST does.
In fact, as t/harness requires t/TEST, simply get t/TEST to do it for t/harness too.
Diffstat (limited to 't/TEST')
-rwxr-xr-xt/TEST26
1 files changed, 13 insertions, 13 deletions
diff --git a/t/TEST b/t/TEST
index d4bf64c97c..92c9bf5fe4 100755
--- a/t/TEST
+++ b/t/TEST
@@ -86,19 +86,6 @@ my %temp_no_core =
'../cpan/Unicode-Normalize' => 1,
);
-if ($::do_nothing) {
- return 1;
-}
-
-# Location to put the Valgrind log.
-our $Valgrind_Log;
-
-$| = 1;
-
-# for testing TEST only
-#BEGIN { require '../lib/strict.pm'; "strict"->import() };
-#BEGIN { require '../lib/warnings.pm'; "warnings"->import() };
-
# delete env vars that may influence the results
# but allow override via *_TEST env var if wanted
# (e.g. PERL5OPT_TEST=-d:NYTProf)
@@ -113,6 +100,19 @@ for my $envname (qw(PERL5LIB PERLLIB PERL5OPT)) {
}
}
+if ($::do_nothing) {
+ return 1;
+}
+
+# Location to put the Valgrind log.
+our $Valgrind_Log;
+
+$| = 1;
+
+# for testing TEST only
+#BEGIN { require '../lib/strict.pm'; "strict"->import() };
+#BEGIN { require '../lib/warnings.pm'; "warnings"->import() };
+
# remove empty elements due to insertion of empty symbols via "''p1'" syntax
@ARGV = grep($_,@ARGV) if $^O eq 'VMS';
our $show_elapsed_time = $ENV{HARNESS_TIMER} || 0;