I was creating a small test distribution to see how some additions to
CPAN::Reporter handle failures during "make" or "perl Build".  My
approach was to specify a PL file that just dies immediately.

The EU::MM Makefile interprets that as a make failure and returns a
non-zero exit code.  However, the Build script happy shows the die
message and then returns a zero exit code.

Shouldn't a PL failure cause the Build to report failure?  The issue
is in process_PL which calls run_perl_script without checking the
return value:

sub process_PL_files {
 my ($self) = @_;
 my $files = $self->find_PL_files;

 while (my ($file, $to) = each %$files) {
   unless ($self->up_to_date( $file, $to )) {
     $self->run_perl_script($file, [], [EMAIL PROTECTED]);
     $self->add_to_cleanup(@$to);
   }
 }
}

Note -- for building C files, this isn't a problem because
ExtUtils::CBuilder::Base::compile() will die if the compilation fails.

Regards,

David

Reply via email to