On Wed, Apr 10, 2002 at 10:24:32AM +0900, Curt Sampson wrote: > On Tue, 9 Apr 2002, Adrian Howard wrote: > > > lives_ok BLOCK TEST_NAME > > Tests to see that BLOCK exits normally, and doesn't die. > > I'm not sure exactly what the purpose of this is; your test will > still fail if it dies even when not in a lives_ok block, right?
It'll fail and take the whole rest of the test program with it. Some testing systems like to abort the test script on failure. Perl's doesn't. Aegis, in particular, pretty much requires tests to always exit gracefully, passing or not. It's not uncommon to do this: ok( eval { ...some code...; 1; } ); which would be really all that lives_ok() would be. > Not that I have any real objection to this, but I can't see where > I'd ever use it. > > The rest looks great, however. Ideally it should end up in Test::More > at some point, I would think. Nope. No more functions in Test::More, too much in there already. I want to encourage the idea of having more than one Test::* module in use in a test. -- Michael G. Schwern <[EMAIL PROTECTED]> http://www.pobox.com/~schwern/ Perl Quality Assurance <[EMAIL PROTECTED]> Kwalitee Is Job One HA HA HA You're all so ridiculous! But thanks for the money!