Bail out!
to standard output. Any message after these words will be displayed by "Test::Harness" as the reason why testing is stopped.
I haven't tested whether this really works in A-T, but I see no reason why it shouldn't.
I tried to use it when I was messing with the pre- and post-test foo a while back, but couldn't get it to work. it might have had something to do with the massive other changes I was trying to implement at the time, though...
William will let us know.
if we can get it to work, I'd be in favor of an Apache::Test::bail() function (or whatever you want to call it).
It's an ambiguous name since it doesn't tell you that it'll bail out from the whole test suite and one may think that it'll abort only the current test. How about:
Apache::Test::abort_all_tests()
or a similar, more explicit name? Suggestions are welcome of course.
__________________________________________________________________ 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