Subject: | Fails on Win32 |
On Windows, Module::Pluggable::Object can end up trying to load Win32.pm, which fails because of how this modules clobbers @INC.
Minimal test case:
md lib\Foo
copy nul lib\Foo.pm
copy nul lib\Foo\Bar.pm
perl -MTest::LoadAllModules -e"all_uses_ok( search_path => 'Foo' )"
Output:
Can't locate Win32.pm in @INC (you may need to install the Win32 module) (@INC contains: lib) at C:/progs/sp5302-x64/perl/lib/Cwd.pm line 605.
BEGIN failed--compilation aborted.
1..0