This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add test boilerplate to the new MakeMaker tests
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Mon, 1 Jun 2009 13:52:31 +0000 (15:52 +0200)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Mon, 1 Jun 2009 13:52:31 +0000 (15:52 +0200)
lib/ExtUtils/t/arch_check.t
lib/ExtUtils/t/pod2man.t

index 3d62fe2..a4fe88b 100644 (file)
@@ -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';
 
index 1632234..fa533bd 100644 (file)
@@ -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;