On 10/21/07, Eric Wilhelm <[EMAIL PROTECTED]> wrote:
> Why is it "die 'OS unsupported'" in one case and "exit 0 unless happy()"
> in the other?  Seems like they should both be dying.

Parsing for "OS unsupported" or "No support for OS" was introduced as
a heuristic into CPANPLUS a couple years ago (I think) to detect
"failures" that should be graded NA.

Without those particular strings, the exit value of Makefile.PL or
Build.PL alone determines whether those files FAIL or whether
processing should proceed to the make/Build stage.

"exit 0" before the Makefile or Build file is generated will prevent a
FAIL grade from being reported.  Since neither file exists, the next
phase shouldn't begin.  (Recently fixed in CPAN.)

It might as well be like this:

if ( happy() ) {
    WriteMakefile( %ops )
}

So if you 'die "missing library"' then you'll get a FAIL report.

David

Reply via email to