oops. Applied to SVN, thanks. -- Petr
On Sunday 16 September 2007, Jonathan Rockway wrote: > Michael G Schwern wrote: > > Test::More 0.71 fixed a subtle bug where a call to use_ok() inside a > > BEGIN block without a plan would be silently ignored. That is... > > > > use Test::More; > > > > BEGIN { use_ok('Exporter') } # for example > > > > plan tests => 1; > > pass(); > > > > would pass when it should have failed. This commonly takes the form... > > > > use Test::More; > > > > if( ...something we need isn't there... ) { > > plan skip_all => "Missing something"; > > } > > else { > > plan tests => 2; > > } > > > > BEGIN { use_ok('Some::Module') } > > XML::LibXML does this. Attached is a patch to fix it. > > Regards, > Jonathan Rockway