Subject: | not gracefully handling missing dirs in @INC |
You should have gotten a cpantesters report for this failure, but here's a little more info...
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01-require.t ...... ok
stat(/Network/Library/Perl/5.10.0/darwin-thread-multi-2level): No such file or directory at /Users/ether/.cpanm/work/1402678239.4462/Module-Path-0.13/blib/lib/Module/Path.pm line 49.
stat(/Network/Library/Perl/5.10.0): No such file or directory at /Users/ether/.cpanm/work/1402678239.4462/Module-Path-0.13/blib/lib/Module/Path.pm line 49.
stat(/Network/Library/Perl): No such file or directory at /Users/ether/.cpanm/work/1402678239.4462/Module-Path-0.13/blib/lib/Module/Path.pm line 49.
t/02-module-path.t .. ok
# Failed test 'non-existent module should result in failure'
# at t/03-mpath.t line 44.
# Failed test 'got expected output'
# at t/03-mpath.t line 57.
# got: 'stat(/Network/Library/Perl/5.10.0/darwin-thread-multi-2level): No such file or directory at /Users/ether/.cpanm/work/1402678239.4462/Module-Path-0.13/blib/lib/Module/Path.pm line 49.
# stat(/Network/Library/Perl/5.10.0): No such file or directory at /Users/ether/.cpanm/work/1402678239.4462/Module-Path-0.13/blib/lib/Module/Path.pm line 49.
# stat(/Network/Library/Perl): No such file or directory at /Users/ether/.cpanm/work/1402678239.4462/Module-Path-0.13/blib/lib/Module/Path.pm line 49.
# /System/Library/Perl/5.10.0/strict.pm
# /System/Library/Perl/5.10.0/warnings.pm
# No::Such::Module not found'
# expected: '/System/Library/Perl/5.10.0/strict.pm
# /System/Library/Perl/5.10.0/warnings.pm
# No::Such::Module not found'
# Failed test 'error message should not be printed when the option --quiet is specified'
# at t/03-mpath.t line 67.
# got: 'stat(/Network/Library/Perl/5.10.0/darwin-thread-multi-2level): No such file or directory at /Users/ether/.cpanm/work/1402678239.4462/Module-Path-0.13/blib/lib/Module/Path.pm line 49.
# stat(/Network/Library/Perl/5.10.0): No such file or directory at /Users/ether/.cpanm/work/1402678239.4462/Module-Path-0.13/blib/lib/Module/Path.pm line 49.
# stat(/Network/Library/Perl): No such file or directory at /Users/ether/.cpanm/work/1402678239.4462/Module-Path-0.13/blib/lib/Module/Path.pm line 49.
# /System/Library/Perl/5.10.0/strict.pm
# /System/Library/Perl/5.10.0/warnings.pm'
# expected: '/System/Library/Perl/5.10.0/strict.pm
# /System/Library/Perl/5.10.0/warnings.pm'
# Looks like you failed 3 tests of 14.
t/03-mpath.t ........
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/14 subtests
Test Summary Report
-------------------
t/03-mpath.t (Wstat: 768 Tests: 14 Failed: 3)
Failed tests: 2, 8, 11
Non-zero exit status: 3
Files=3, Tests=18, 2 wallclock secs ( 0.03 usr 0.02 sys + 0.67 cusr 0.25 csys = 0.97 CPU)
Result: FAIL
Failed 1/3 test programs. 3/18 subtests failed.
Yes, this is my system perl (I couldn't get 5.10.0 to build from source, but since I have an older OSX, it's already here, so I'm using it with a local::lib on top to test some odd failures I'm getting with my modules...)
$ which perl
/usr/bin/perl
$ perl -v
This is perl, v5.10.0 built for darwin-thread-multi-2level
$; perl -wle'print join("\n", @INC)'
/Users/ether/.perlbrew/libs/10.0-system@std/lib/perl5/darwin-thread-multi-2level
/Users/ether/.perlbrew/libs/10.0-system@std/lib/perl5
/Library/Perl/Updates/5.10.0
/System/Library/Perl/5.10.0/darwin-thread-multi-2level
/System/Library/Perl/5.10.0
/Library/Perl/5.10.0/darwin-thread-multi-2level
/Library/Perl/5.10.0
/Network/Library/Perl/5.10.0/darwin-thread-multi-2level
/Network/Library/Perl/5.10.0
/Network/Library/Perl
/System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.10.0
.
$; ls /Network/Library/Perl
ls: /Network/Library/Perl: No such file or directory
So, I would suggest that Module::Path silently skip any directories it sees in @INC that don't actually exist, since this seems to be something that actually happens. (I've never touched my system perl - never installed any modules nor touched it in any other way.)