--- Michael G Schwern <[EMAIL PROTECTED]> wrote:

> Adam Kennedy wrote:
> > Personally, I've always wanted a per-file bail_out as well, that
> can
> > just abort the current test script, rather than the entire testing
> process.
> > 
> > Schwern? :)
> 
> die.

Definitely the way to go.  Up until I started moving the loading of
modules into 00-load.t modules, I always started test programs with
variants of this:

  BEGIN {
    use_ok $some_module or die;
  }

Saves a lot of grief.

Cheers,
Ovid

--

Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/

Reply via email to