MFH: Fix cwd when running tests out of tree with ZTS builds (fixes #45837)

This commit is contained in:
Arnaud Le Blanc 2008-09-12 14:15:05 +00:00
parent b08615c675
commit 343d958b25

View File

@ -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;