On Fri, Nov 30, 2007 at 05:26:19PM +0000, David Cantrell wrote:
> On Fri, Nov 30, 2007 at 09:12:59AM -0800, Bill Moseley wrote:
> 
> > Yes, that was a bit more obvious.  I must have removed a test and then
> > not forced it to run without that module loaded again.
> 
> Changing the topic somewhat, a really good module for pretending that
> various modules don't exist is Devel::Hide.  The -from:children switch
> will even hide modules from child processes.

Thanks for the tip!

$ perl -MDevel::Hide=Net::CIDR -Iblib/lib t/10-Field-CIDR_List.t
Devel::Hide hides Net/CIDR.pm
1..6
ok 1 # skip Skip: failed to load module Net::CIDR
ok 2 # skip Skip: failed to load module Net::CIDR
ok 3 # skip Skip: failed to load module Net::CIDR
ok 4 # skip Skip: failed to load module Net::CIDR
ok 5 # skip Skip: failed to load module Net::CIDR
ok 6 # skip Skip: failed to load module Net::CIDR
ok 7 # skip Skip: failed to load module Net::CIDR
# Looks like you planned 6 tests but ran 1 extra.

Yep.

So I'm using Module::Install with "recommends".  Not sure if that does
anything, but it would be handy to be able to automatically hide those
when running make test.

-- 
Bill Moseley
[EMAIL PROTECTED]

Reply via email to