summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorArnaud Le Blanc <lbarnaud@php.net>2008-09-12 14:15:05 +0000
committerArnaud Le Blanc <lbarnaud@php.net>2008-09-12 14:15:05 +0000
commit343d958b25ca8dad260bb6b765b84ad4df6bb53c (patch)
treeb5991521e6f0aff063c497c30a2728e8d39c0117 /run-tests.php
parentb08615c675b817383e41fee2e8a9b86b17972a7d (diff)
downloadphp-git-343d958b25ca8dad260bb6b765b84ad4df6bb53c.tar.gz
MFH: Fix cwd when running tests out of tree with ZTS builds (fixes #45837)
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/run-tests.php b/run-tests.php
index c9a43f939c..814f36ce49 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -996,7 +996,7 @@ function error_report($testname, $logname, $tested)
function system_with_timeout($commandline, $env = null, $stdin = null)
{
- global $leak_check;
+ global $leak_check, $cwd;
$data = '';
@@ -1004,7 +1004,7 @@ function system_with_timeout($commandline, $env = null, $stdin = null)
0 => array('pipe', 'r'),
1 => array('pipe', 'w'),
2 => array('pipe', 'w')
- ), $pipes, null, $env, array('suppress_errors' => true, 'binary_pipes' => true));
+ ), $pipes, $cwd, $env, array('suppress_errors' => true, 'binary_pipes' => true));
if (!$proc) {
return false;