Swap the chdir and the call to perl_lib(), to work with relative paths in @INC.
Nicholas Clark [Sun, 11 Oct 2009 14:11:06 +0000 (15:11 +0100)]
dist/ExtUtils-Install/t/InstallWithMM.t

index 028c01a..4b2c439 100644 (file)
@@ -27,10 +27,10 @@ delete @ENV{qw(PREFIX LIB MAKEFLAGS)};
     my $perl = which_perl();
     my $Is_VMS = $^O eq 'VMS';
 
-    chdir 't';
-
     perl_lib;
 
+    chdir 't';
+
     my $Touch_Time = calibrate_mtime();
 
     $| = 1;