summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--t/harness11
1 files changed, 5 insertions, 6 deletions
diff --git a/t/harness b/t/harness
index 6da6071f1b..64947a7d2e 100644
--- a/t/harness
+++ b/t/harness
@@ -92,12 +92,11 @@ if ($ENV{HARNESS_OPTIONS}) {
if (@ARGV) {
# If you want these run in speed order, just use prove
- if ($^O eq 'MSWin32') {
- @tests = map(glob($_),@ARGV);
- }
- else {
- @tests = @ARGV;
- }
+
+ # Note: we use glob on even on *nix and not just on Windows
+ # because arguments might be passed in via the TEST_ARGS
+ # env var where they wont be expanded by the shell.
+ @tests = map(glob($_),@ARGV);
# This is a hack to force config_heavy.pl to be loaded, before the
# prep work for running a test changes directory.
1 if $Config{d_fork};