fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-12-28 01:10 pm

[dw-free] t/00-compile.t fails with LJ/UserSearch.pm installed

[commit: http://hg.dwscoalition.org/dw-free/rev/8d017fc5e194]

http://bugs.dwscoalition.org/show_bug.cgi?id=3352

Use parentheses to disambiguate.

Patch by [personal profile] kareila.

Files modified:
  • t/00-compile.t
--------------------------------------------------------------------------------
diff -r 5c788c49952f -r 8d017fc5e194 t/00-compile.t
--- a/t/00-compile.t	Tue Dec 28 21:05:03 2010 +0800
+++ b/t/00-compile.t	Tue Dec 28 21:10:37 2010 +0800
@@ -44,7 +44,7 @@ foreach my $file (@modules) {
         next;
     }
 
-    system qq($^X -I$lib -e "require $module; print 'ok';" > $out 2>$err);
+    system qq($^X -I$lib -e "require( $module ); print 'ok';" > $out 2>$err);
     my $err_data = slurp($err);
     is($err_data, '', "STDERR of $file");
 
--------------------------------------------------------------------------------