This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
As well as @INC, also convert $^X to an absolute path in MBTest.
authorNicholas Clark <nick@ccl4.org>
Mon, 20 Oct 2008 14:03:42 +0000 (14:03 +0000)
committerNicholas Clark <nick@ccl4.org>
Mon, 20 Oct 2008 14:03:42 +0000 (14:03 +0000)
p4raw-id: //depot/perl@34526

lib/Module/Build/t/lib/MBTest.pm

index 14b8b9e..34f262a 100644 (file)
@@ -16,9 +16,10 @@ BEGIN {
   unless ($ENV{PERL_CORE}) {
     push @INC, $t_lib; # Let user's installed version override
   } else {
-    # We change directories, so expand @INC to absolute paths
+    # We change directories, so expand @INC and $^X to absolute paths
     # Also add .
     @INC = (map(File::Spec->rel2abs($_), @INC), ".");
+    $^X = File::Spec->rel2abs($^X);
 
     # we are in 't', go up a level so we don't create t/t/_tmp
     chdir '..' or die "Couldn't chdir to ..";