X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FExtUtils%2Ft%2Fprereq.t;h=c690a55a02e4f8edbdcb2e1090859ca985200c9d;hb=6d6be53e5cf68dd14a1fce5f754d4f875bdaba05;hp=486fee9ebe95de356b1648242207e1c370655082;hpb=44ddc0720838c134bcecfee722279a483a169b18;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/ExtUtils/t/prereq.t b/lib/ExtUtils/t/prereq.t index 486fee9..c690a55 100644 --- a/lib/ExtUtils/t/prereq.t +++ b/lib/ExtUtils/t/prereq.t @@ -14,7 +14,7 @@ BEGIN { } use strict; -use Test::More tests => 11; +use Test::More tests => 13; use TieOut; use MakeMaker::Test::Utils; @@ -107,4 +107,27 @@ MakeMaker FATAL: prerequisites not found. Please install these modules first and rerun 'perl Makefile.PL'. END + + $warnings = ''; + eval { + WriteMakefile( + NAME => 'Big::Dummy', + PREREQ_PM => { + "I::Do::Not::Exist" => 0, + }, + CONFIGURE => sub { + require I::Do::Not::Exist; + }, + PREREQ_FATAL => 1, + ); + }; + + is $warnings, ''; + is $@, <<'END', "PREREQ_FATAL happens before CONFIGURE"; +MakeMaker FATAL: prerequisites not found. + I::Do::Not::Exist not installed + +Please install these modules first and rerun 'perl Makefile.PL'. +END + }