summaryrefslogtreecommitdiff
path: root/t/TEST
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2015-01-07 09:48:30 -0800
committerFather Chrysostomos <sprout@cpan.org>2015-01-07 09:51:00 -0800
commit804352e2cf6da2f05a8e83ac4debc4ceb6617b7c (patch)
tree9b1f15d70f36233c6e8e43252a9350ae99086e4e /t/TEST
parent82e2da1e1c59d01913b3af8f90692f5ba28bff9d (diff)
downloadperl-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-xt/TEST2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/TEST b/t/TEST
index 4333eed04e..480ce17734 100755
--- a/t/TEST
+++ b/t/TEST
@@ -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;