From: Nicholas Clark <nick@ccl4.org>
Date: Sun, 30 Aug 2009 06:43:36 +0000 (+0100)
Subject: As well as PERL5LIB, remove PERLLIB and PERL5OPT from the environment.
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=154db99c227152f27c43ccfa836a129268cdda40;p=p5sagit%2Fp5-mst-13.2.git

As well as PERL5LIB, remove PERLLIB and PERL5OPT from the environment.

Remove the (now) redundant delete $ENV{PERL5LIB} from harness - requiring TEST
gets us that delete for free.
---

diff --git a/t/TEST b/t/TEST
index 7f2190c..94332ea 100755
--- 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';
diff --git a/t/harness b/t/harness
index 660e584..17a6ffb 100644
--- 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;