Michael G Schwern wrote:
On Tue, Apr 19, 2005 at 07:57:21PM -0400, Stas Bekman wrote:
We're trying to switch mod_perl2 test suite to use Test::More (since
Test.pm can't deal with sub-test counting under ithreads), but I have a
problem with not being able to shut off the END block running, which is
not run at run-time under mod_perl, but only at shutdown, which generates:
END in modperl_extra.pl, pid=17600
WHOA! Somehow your tests ran without a plan!
This should never happen! Please contact the author immediately!
END failed--call queue aborted.
Is it possible for Test::More to provide some method to run
$Test->no_ending or is sub-classing it is the only way?
Simply access the method from the underlying Test::Builder object.
Test::More->builder->no_ending(1);
Ah. Didn't realise Test::Builder->new is a singleton.
Thanks Michael, works like a charm.
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]