From: Nicholas Clark Date: Tue, 17 Feb 2009 17:11:25 +0000 (+0000) Subject: Get $ENV{PERL5LIB} into a known consistent state under TEST - delete it! X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=104393a727efd8bd71ca6d7f9b0d20a5b92fde48;p=p5sagit%2Fp5-mst-13.2.git Get $ENV{PERL5LIB} into a known consistent state under TEST - delete it! (It doesn't strike me as good that t/TEST and t/harness are inconsistent - the former runs every test with -MTestInit; the latter sets $ENV{PERL5LIB} to '../lib'; and on the gripping hand, we have boilerplate in every test to set @INC. No choice seems ideal. --- diff --git a/t/TEST b/t/TEST index a8ff006..7ce9366 100755 --- a/t/TEST +++ b/t/TEST @@ -14,6 +14,7 @@ $| = 1; # Let tests know they're running in the perl core. Useful for modules # which live dual lives on CPAN. $ENV{PERL_CORE} = 1; +delete $ENV{PERL5LIB}; # remove empty elements due to insertion of empty symbols via "''p1'" syntax @ARGV = grep($_,@ARGV) if $^O eq 'VMS';