|Subject:||t/02_main.t fails if CPAN has not been preconfigured|
If $HOME/.cpan does not exists, CPAN called by CPAN::Inject will initialize the configurations, install local::lib and returns to the CPAN::Inject which fails: [...] You can re-run configuration any time with 'o conf init' in the CPAN shell ok 13 # skip Current user owns CPAN::Config ok 14 - An object of class 'CPAN::Inject' isa 'CPAN::Inject' ok 15 - ->author ok The directory 't/sources' does not exist at t/02_main.t line 100. # Looks like you planned 24 tests but ran 15. # Looks like your test exited with 2 just after 15. Dubious, test returned 2 (wstat 512, 0x200) Failed 9/24 subtests This is because current working directory has been changed unexpectedly into $HOME/.cpan/build/local-lib-2.000011-GyARJh (the local-lib build directory). Thus CPAN::Inject cannot find t/sources anymore. Is it a bug in the CPAN::Inject, CPAN, or local::lib build script?