diff options
author | Father Chrysostomos <sprout@cpan.org> | 2015-01-07 09:48:30 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2015-01-07 09:51:00 -0800 |
commit | 804352e2cf6da2f05a8e83ac4debc4ceb6617b7c (patch) | |
tree | 9b1f15d70f36233c6e8e43252a9350ae99086e4e /t/TEST | |
parent | 82e2da1e1c59d01913b3af8f90692f5ba28bff9d (diff) | |
download | perl-804352e2cf6da2f05a8e83ac4debc4ceb6617b7c.tar.gz |
Avoid glob in t/TEST on non-Windows
See ticket #123561. The presence of ‘glob’ was causing perl to
attempt to File::Glob at compile time, before @INC is set up.
Windows needs to do file globbing on @ARGV for t/TEST to work cor-
rectly. Windows only uses TEST for miniperl (it uses harness for
‘make test’), and under miniperl ‘glob’ doesn’t use File::Glob. So it
is safe to use ‘glob’ on Windows. For the sake of other systems, we
can put it in a string eval to avoid even compiling the op.
Diffstat (limited to 't/TEST')
-rwxr-xr-x | t/TEST | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -124,7 +124,7 @@ $| = 1; # remove empty elements due to insertion of empty symbols via "''p1'" syntax @ARGV = grep($_,@ARGV) if $^O eq 'VMS'; -@ARGV = map glob, @ARGV if $^O eq 'MSWin32'; +@ARGV = eval 'map glob, @ARGV' if $^O eq 'MSWin32'; our $show_elapsed_time = $ENV{HARNESS_TIMER} || 0; |