diff options
Diffstat (limited to 't/001compile.t')
-rw-r--r-- | t/001compile.t | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/t/001compile.t b/t/001compile.t index 7097ad361..a546e40ad 100644 --- a/t/001compile.t +++ b/t/001compile.t @@ -49,12 +49,12 @@ sub compile_file { $T = "T"; } - my $libs = ''; + my $libs = '-It '; if ($ENV{PERL5LIB}) { - $libs = join " ", map { "-I\"$_\"" } split /$Config{path_sep}/, $ENV{PERL5LIB}; + $libs .= join " ", map { "-I\"$_\"" } split /$Config{path_sep}/, $ENV{PERL5LIB}; } my $perl = qq{"$^X"}; - my $output = `$perl $libs -c$T $file 2>&1`; + my $output = `$perl $libs -c$T -MSupport::Systemexec $file 2>&1`; chomp($output); my $return_val = $?; $output =~ s/^\Q$file\E syntax OK$//ms; |