summaryrefslogtreecommitdiff
path: root/cpan
diff options
context:
space:
mode:
authorSteve Hay <SteveHay@planit.com>2009-10-10 12:20:43 +0100
committerSteve Hay <SteveHay@planit.com>2009-10-11 03:12:01 +0100
commit1579b0259613d9c076b600ce967db943725c3d4a (patch)
tree95d174233cc1a850a97299e13bdbaa78990ff186 /cpan
parentdeafae52c0ee26d9b53e39e333d390c4443dd43c (diff)
downloadperl-1579b0259613d9c076b600ce967db943725c3d4a.tar.gz
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)
Diffstat (limited to 'cpan')
-rw-r--r--cpan/ExtUtils-CBuilder/t/00-have-compiler.t6
-rw-r--r--cpan/ExtUtils-CBuilder/t/01-basic.t9
-rw-r--r--cpan/ExtUtils-CBuilder/t/02-link.t9
3 files changed, 24 insertions, 0 deletions
diff --git a/cpan/ExtUtils-CBuilder/t/00-have-compiler.t b/cpan/ExtUtils-CBuilder/t/00-have-compiler.t
index 245bce571e..cf62e97f2f 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 66a025f01a..79a0b0c0eb 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 1e55f6a4e3..c748d3b75a 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 {