diff --git a/run-tests.php b/run-tests.php index ff9627a625e..1cf8df664f5 100755 --- a/run-tests.php +++ b/run-tests.php @@ -1158,7 +1158,7 @@ function system_with_timeout( // and on Windows quotes are discarded, this is a fix to honor the quotes and allow values containing // spaces like '"C:\Program Files\PHP\php.exe"' to be passed as 1 argument correctly if (IS_WINDOWS) { - $commandline = 'start "" /b /wait ' . $commandline; + $commandline = 'start "" /b /wait ' . $commandline . ' & exit'; } $data = '';