]> granicus.if.org Git - php/commitdiff
- MFH Increase timeut for -m testing
authorMarcus Boerger <helly@php.net>
Sun, 18 Dec 2005 12:08:18 +0000 (12:08 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 18 Dec 2005 12:08:18 +0000 (12:08 +0000)
run-tests.php

index b20a3976eb806189b26cce29b755659c1f1712f1..4c9bf0d1a72c586feda36e1a1c08326d71ae5991 100755 (executable)
@@ -757,6 +757,8 @@ function error_report($testname, $logname, $tested)
 
 function system_with_timeout($commandline)
 {
+       global $leak_check;
+
        $data = "";
        
        $proc = proc_open($commandline, array(
@@ -775,7 +777,7 @@ function system_with_timeout($commandline)
                $r = $pipes;
                $w = null;
                $e = null;
-               $n = @stream_select($r, $w, $e, 60);
+               $n = @stream_select($r, $w, $e, $leak_check ? 300 : 60);
 
                if ($n === 0) {
                        /* timed out */