]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Test 1 fails if PERLLIB contains paths with whitespace.
authorMarc Schumann <wurblzap@gmail.com>
Wed, 15 Feb 2012 17:51:47 +0000 (18:51 +0100)
committerMarc Schumann <wurblzap@gmail.com>
Wed, 15 Feb 2012 17:51:47 +0000 (18:51 +0100)
r=gerv; a=LpSolit

https://bugzilla.mozilla.org/show_bug.cgi?id=714074

t/001compile.t

index 578be7450979f22f8f8d0a7989cdeb59146bb8fc..a82b30a9ebf35d2328c14c5997b2c7db345dcd2e 100644 (file)
@@ -48,7 +48,7 @@ sub compile_file {
 
     my $libs = '';
     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 -wc$T $file 2>&1`;