summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrun-tests.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/run-tests.php b/run-tests.php
index f5cbfb05c0..01af4aef20 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -550,7 +550,11 @@ HELP;
}
if (strlen($conf_passed))
{
- $pass_options .= " -c '$conf_passed'";
+ if (substr(PHP_OS, 0, 3) != "WIN")) {
+ $pass_options .= " -c " . escapeshellarg($conf_passed);
+ } else {
+ $pass_options .= " -c '$conf_passed'";
+ }
}
$test_files = array_unique($test_files);
$test_files = array_merge($test_files, $redir_tests);