From: Rafael Garcia-Suarez Date: Mon, 8 Jun 2009 08:35:48 +0000 (+0200) Subject: Add missing test boilerplates to new MakeMaker tests X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e39d780342f3e91579069fdc80eda72bfe639ae7;p=p5sagit%2Fp5-mst-13.2.git Add missing test boilerplates to new MakeMaker tests --- diff --git a/lib/ExtUtils/t/arch_check.t b/lib/ExtUtils/t/arch_check.t index e4b3aef..deb289a 100644 --- a/lib/ExtUtils/t/arch_check.t +++ b/lib/ExtUtils/t/arch_check.t @@ -1,5 +1,12 @@ #!/usr/bin/perl -w +BEGIN { + if ($ENV{PERL_CORE}) { + chdir 't' if -d 't'; + @INC = qw(../lib lib); + } +} + use strict; use lib 't/lib'; diff --git a/lib/ExtUtils/t/miniperl.t b/lib/ExtUtils/t/miniperl.t index 2334eb0..fbd801c 100644 --- a/lib/ExtUtils/t/miniperl.t +++ b/lib/ExtUtils/t/miniperl.t @@ -3,6 +3,13 @@ # Test that we can build modules as miniperl. # This mostly means no XS modules. +BEGIN { + if ($ENV{PERL_CORE}) { + chdir 't' if -d 't'; + @INC = qw(../lib lib); + } +} + use strict; use lib 't/lib'; diff --git a/lib/ExtUtils/t/pm_to_blib.t b/lib/ExtUtils/t/pm_to_blib.t index 66ef879..7c28781 100644 --- a/lib/ExtUtils/t/pm_to_blib.t +++ b/lib/ExtUtils/t/pm_to_blib.t @@ -2,6 +2,13 @@ # Ensure pm_to_blib runs at the right times. +BEGIN { + if ($ENV{PERL_CORE}) { + chdir 't' if -d 't'; + @INC = qw(../lib lib); + } +} + use strict; use lib 't/lib'; diff --git a/lib/ExtUtils/t/pod2man.t b/lib/ExtUtils/t/pod2man.t index 1632234..fa533bd 100644 --- a/lib/ExtUtils/t/pod2man.t +++ b/lib/ExtUtils/t/pod2man.t @@ -1,5 +1,12 @@ #!/usr/bin/perl -w +BEGIN { + if ($ENV{PERL_CORE}) { + chdir 't' if -d 't'; + @INC = qw(../lib); + } +} + # Test our simulation of pod2man use strict;