If that's the behaviour you want you might want to look at lives_and in the latest version (0.15) of Test::Exception which does pretty much exactly that.
(and thanks again to Aristotle for suggesting it, much better than my original idea.)
In reply to Re^3: Writing code using Test::More -- how to fail within subs?
by adrianh
in thread Writing code using Test::More -- how to fail within subs?
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |