Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Test-Prereq CPAN distribution.

Report information
The Basics
Id: 16835
Status: resolved
Worked: 30 min
Priority: 0/
Queue: Test-Prereq

People
Owner: bdfoy [...] cpan.org
Requestors: ANDK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: _prereq_check returns if no prereqs are declared
Show quoted text
cpan> look KIRSLE/Archive-Tyd-0.01.zip
Trying to open a subshell in the build directory... Working directory is /home/k/.cpan/build/Archive-Tyd-0.01 % perl -MTest::Prereq -eprereq_ok 1..1 _get_prereqs: Error loading Makefile.PL: not ok 1 - Makefile.PL did not return a true value. # # Failed test ' Makefile.PL did not return a true value. # ' # in /usr/local/perl-5.8.7/lib/site_perl/5.8.7/Test/Prereq.pm at line 215. # # Looks like you failed 1 test of 1.
I found that I made a mistake when I overrode ExtUtils::MakeMaker::WriteMakefile. In my version, the last evaluated expression was the array of prerequisite modules. If that list was empty, the return value was unintentionally false. That caused its caller to think that the Makefile.PL had exited with a false value (and hence, something must be wrong); Now I always return a true value from my ExtUtils::MakeMaker::WriteMakefile. Test-Prereq-1.030 fixes this and is on its way to CPAN.