From: Steve Hay Date: Sat, 10 Oct 2009 11:20:43 +0000 (+0100) Subject: Sync ExtUtils-CBuilder test scripts with CPAN versions X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1579b0259613d9c076b600ce967db943725c3d4a;p=p5sagit%2Fp5-mst-13.2.git Sync ExtUtils-CBuilder test scripts with CPAN versions This restores the test boilerplates that were removed when ExtUtils-CBuilder was moved from lib/ to ext/ (4d984b75f1859fc27f556ee42f31a04df42a2004) --- diff --git a/cpan/ExtUtils-CBuilder/t/00-have-compiler.t b/cpan/ExtUtils-CBuilder/t/00-have-compiler.t index 245bce5..cf62e97 100644 --- a/cpan/ExtUtils-CBuilder/t/00-have-compiler.t +++ b/cpan/ExtUtils-CBuilder/t/00-have-compiler.t @@ -4,6 +4,12 @@ use File::Spec; my $perl; BEGIN { $perl = File::Spec->rel2abs($^X); + if ($ENV{PERL_CORE}) { + chdir 't' if -d 't'; + chdir '../lib/ExtUtils/CBuilder' + or die "Can't chdir to lib/ExtUtils/CBuilder: $!"; + @INC = qw(../..); + } } use strict; diff --git a/cpan/ExtUtils-CBuilder/t/01-basic.t b/cpan/ExtUtils-CBuilder/t/01-basic.t index 66a025f..79a0b0c 100644 --- a/cpan/ExtUtils-CBuilder/t/01-basic.t +++ b/cpan/ExtUtils-CBuilder/t/01-basic.t @@ -1,5 +1,14 @@ #! perl -w +BEGIN { + if ($ENV{PERL_CORE}) { + chdir 't' if -d 't'; + chdir '../lib/ExtUtils/CBuilder' + or die "Can't chdir to lib/ExtUtils/CBuilder: $!"; + @INC = qw(../..); + } +} + use strict; use Test::More; BEGIN { diff --git a/cpan/ExtUtils-CBuilder/t/02-link.t b/cpan/ExtUtils-CBuilder/t/02-link.t index 1e55f6a..c748d3b 100644 --- a/cpan/ExtUtils-CBuilder/t/02-link.t +++ b/cpan/ExtUtils-CBuilder/t/02-link.t @@ -1,5 +1,14 @@ #! perl -w +BEGIN { + if ($ENV{PERL_CORE}) { + chdir 't' if -d 't'; + chdir '../lib/ExtUtils/CBuilder' + or die "Can't chdir to lib/ExtUtils/CBuilder: $!"; + @INC = qw(../..); + } +} + use strict; use Test::More; BEGIN {