cannot run tests when using PERL5LIB (e.g. when using local::lib)
Gabor Szabo
szabgab at gmail.com
Thu Feb 11 21:33:43 UTC 2010
When trying to run ./runtests.pl the test t/001compile.t blows up as I am using
local::lib and I have PERL5LIB configured to locate the privately installed
modules.
This patch fixes it.
Does it look reasonable?
=== modified file 't/001compile.t'
--- t/001compile.t 2009-11-18 07:01:40 +0000
+++ t/001compile.t 2010-02-11 21:24:22 +0000
@@ -59,8 +59,12 @@
$T = "T";
}
+ my $libs = '';
+ if ($ENV{PERL5LIB}) {
+ $libs = join " ", map { "-I$_" } split /:/, $ENV{PERL5LIB};
+ }
my $perl = qq{"$^X"};
- my $output = `$perl -wc$T $file 2>&1`;
+ my $output = `$perl $libs -wc$T $file 2>&1`;
chomp($output);
my $return_val = $?;
$output =~ s/^\Q$file\E syntax OK$//ms;
More information about the developers
mailing list