As well as PERL5LIB, remove PERLLIB and PERL5OPT from the environment.
Nicholas Clark [Sun, 30 Aug 2009 06:43:36 +0000 (07:43 +0100)]
Remove the (now) redundant delete $ENV{PERL5LIB} from harness - requiring TEST
gets us that delete for free.

t/TEST
t/harness

diff --git a/t/TEST b/t/TEST
index 7f2190c..94332ea 100755 (executable)
--- a/t/TEST
+++ b/t/TEST
@@ -61,6 +61,8 @@ $| = 1;
 #BEGIN { require '../lib/warnings.pm'; "warnings"->import() };
 
 delete $ENV{PERL5LIB};
+delete $ENV{PERLLIB};
+delete $ENV{PERL5OPT};
 
 # remove empty elements due to insertion of empty symbols via "''p1'" syntax
 @ARGV = grep($_,@ARGV) if $^O eq 'VMS';
index 660e584..17a6ffb 100644 (file)
--- a/t/harness
+++ b/t/harness
@@ -8,8 +8,6 @@ BEGIN {
     @INC = '../lib';              # pick up only this build's lib
 }
 
-delete $ENV{PERL5LIB};
-
 my $torture; # torture testing?
 
 use TAP::Harness 3.13;