Michael G Schwern via RT wrote:
Show quoted text> I suspect the problem might be how Test::Harness reconstructs @INC stripping
> out duplicate @INC entries (in this case the blib ones), but I haven't nailed
> it down yet.
Yep, here's the sequence of events...
When I run:
perl Build.PL
then
PERL5LIB=$PWD/blib/lib:$PWD/blib/arch:$PWD/blib:$HOME/devel/Test-Harness/lib
build test --test_files t/basic.t
Just before Module::Build calls TAP::Harness->new, @INC is this:
/Users/schwern/devel/Module-Build/blib/lib
/Users/schwern/devel/Module-Build/blib/arch inc t/lib t/bundled lib
/sw/lib/perl5/darwin-thread-multi-2level /sw/lib/perl5 /sw/lib/perl5/darwin
/Users/schwern/devel/Module-Build/blib/lib
/Users/schwern/devel/Module-Build/blib/arch
/Users/schwern/devel/Module-Build/blib /Users/schwern/devel/Test-Harness/lib
/usr/local/perl/5.10.0/lib/5.10.0/darwin-thread-multi-2level
/usr/local/perl/5.10.0/lib/5.10.0
/usr/local/perl/5.10.0/lib/site_perl/5.10.0/darwin-thread-multi-2level
/usr/local/perl/5.10.0/lib/site_perl/5.10.0 .
Note the doubled blib entries, that's what's supposed to be there.
This is what TAP::Harness::Source::Perl sets PERL5LIB to:
inc:t/lib:t/bundled:lib:/sw/lib/perl5/darwin-thread-multi-2level:/sw/lib/perl5:/sw/lib/perl5/darwin:/Users/schwern/devel/Module-Build/blib/lib:/Users/schwern/devel/Module-Build/blib/arch:/Users/schwern/devel/Module-Build/blib:/Users/schwern/devel/Test-Harness/lib
And the command it runs:
/usr/local/perl/5.10.0/bin/perl -w t/basic.t
Something inside TAP::Harness is stripping out duplicate @INC entries but it's
taking them off the front, not the back.
--
40. I do not have super-powers.
-- The 213 Things Skippy Is No Longer Allowed To Do In The U.S. Army
http://skippyslist.com/list/