99
1010use strict;
1111use Config;
12- use Test::More tests => 21 ;
12+ use Test::More tests => 23 ;
1313use File::Temp qw[ tempdir] ;
1414
1515use TieOut;
@@ -57,7 +57,7 @@ ok( chdir 'Big-Dummy', "chdir'd to Big-Dummy" ) ||
5757 is $warnings , ' ' , ' basic prereq' ;
5858
5959 SKIP: {
60- skip ' No CMR, no version ranges' , 1
60+ skip ' No CMR, no version ranges' , 3
6161 unless ExtUtils::MakeMaker::_has_cpan_meta_requirements;
6262 $warnings = ' ' ;
6363 WriteMakefile(
@@ -66,15 +66,39 @@ ok( chdir 'Big-Dummy', "chdir'd to Big-Dummy" ) ||
6666 strict => ' >= 0, <= 99999' ,
6767 }
6868 );
69- is $warnings , ' ' , ' version range' ;
69+ isnt $warnings , ' ' , ' version range, no min EUMM specified' ;
70+
71+ $warnings = ' ' ;
72+ WriteMakefile(
73+ NAME => ' Big::Dummy' ,
74+ PREREQ_PM => {
75+ strict => ' >= 0, <= 99999' ,
76+ },
77+ CONFIGURE_REQUIRES => {
78+ ' ExtUtils::MakeMaker' => ' 7.04' ,
79+ },
80+ );
81+ isnt $warnings , ' ' , ' version range and insufficient EUMM specified' ;
82+
83+ $warnings = ' ' ;
84+ WriteMakefile(
85+ NAME => ' Big::Dummy' ,
86+ PREREQ_PM => {
87+ strict => ' >= 0, <= 99999' ,
88+ },
89+ CONFIGURE_REQUIRES => {
90+ ' ExtUtils::MakeMaker' => ' 7.11_01' ,
91+ },
92+ );
93+ is $warnings , ' ' , ' version range and sufficient EUMM specified' ;
7094 }
7195
7296 $warnings = ' ' ;
7397 WriteMakefile(
7498 NAME => ' Big::Dummy' ,
7599 PREREQ_PM => {
76100 strict => 99999
77- }
101+ },
78102 );
79103 is $warnings ,
80104 sprintf (" Warning: prerequisite strict 99999 not found. We have %s .\n " ,
0 commit comments