Subject: | t/05meta.t ignores PERL5LIB |
t/05meta.t sets $ENV{PERL5LIB} without regard for any prior value of
$ENV{PERL5LIB}. This causes failures when prerequisite modules are
installed in a user's home directory set in PERL5LIB. Appending the old
PERL5LIB seems to solve that problem and pass tests.
--- t/05meta.t.orig 2007-07-16 10:25:05.000000000 -0700
+++ t/05meta.t 2007-07-16 10:25:55.000000000 -0700
@@ -15,7 +15,8 @@
my $path_sep = $Config{path_sep} || ':';
$ENV{PERL5LIB} = join $path_sep,
(File::Spec->catdir($cwd, qw(t dot-cpan)),
- map {File::Spec->catdir($cwd, 'blib', $_)} qw(arch lib) );
+ map {File::Spec->catdir($cwd, 'blib', $_)} qw(arch lib) ),
+ $ENV{PERL5LIB};
# so that a real $HOME/.cpan isn't used
$ENV{HOME} = File::Spec->catdir($cwd, qw(t));