summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2003-12-05 13:45:00 (GMT)
committerWez Furlong <wez@php.net>2003-12-05 13:45:00 (GMT)
commitc92a2219efed2cd54633bc56d7fdc86c5175e05e (patch)
treefdc91cbe20dd5782c513f2e1b278335cd7de65c0 /run-tests.php
parent98f1021dd85fac47ac37778e955ed42a2a608215 (diff)
downloadphp-c92a2219efed2cd54633bc56d7fdc86c5175e05e.tar.gz
Add optional array argument to proc_open() to specify additional
options for the child process. The first option is "suppress_errors" which will disable any dialog boxes that arise from missing DLL's and suppress the GPF dialog. Use this new feature in the test suite, so that crashing tests don't block the test run; useful for un-attended execution.
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/run-tests.php b/run-tests.php
index b1493f5..0b4f6af 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -117,6 +117,7 @@ if (getenv('TEST_PHP_EXECUTABLE')) {
putenv("TEST_PHP_EXECUTABLE=$php");
}
}
+
if (empty($php) || !file_exists($php)) {
error("environment variable TEST_PHP_EXECUTABLE must be set to specify PHP executable!");
}
@@ -588,7 +589,7 @@ function system_with_timeout($commandline)
0 => array('pipe', 'r'),
1 => array('pipe', 'w'),
2 => array('pipe', 'w')
- ), $pipes);
+ ), $pipes, null, null, array("suppress_errors" => true));
if (!$proc)
return false;