> -----Original Message-----
> From: Eric Wilhelm [mailto:enoba...@gmail.com]
> Sent: Monday, December 14, 2009 7:34 PM
> To: module-authors@perl.org
> Subject: Re: Writing tests
> 
> # from Elliot Shank
> # on Sunday 13 December 2009 12:58:
> 
> >You don't fail the {Makefile|Build}.PL, you just don't emit the
> > resulting file and exit with 0.  This way the standard build chain
> > treats it as a NA and not a FAIL.
> 
> This only has to do with cpantesters and *not* the "standard build
> chain".  IMO, cpantesters needs to learn to deal with die() in Build.PL
> because using it is far more natural than:
> 
>   unless($condition) {
>     warn "you don't have the $condition -- Cannot continue.";
>     exit 0; # silly cpantesters requirement
>   }

Well... Either die "OS unsupported\n" is an exception (since I get NA for that)
or this is the old behavior (to lazy to search for that ATM)

> --Eric
> --
> Introducing change is like pulling off a bandage: the pain is a memory
> almost as soon as you feel it.
> --Paul Graham
> ---------------------------------------------------
>     http://scratchcomputing.com
> ---------------------------------------------------

Reply via email to