From: Christoph M. Becker Date: Fri, 3 Jan 2020 15:44:53 +0000 (+0100) Subject: Try to fix intermittently failing test case X-Git-Tag: php-7.4.7RC1~342 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fc6e83e01a187d48a54fd821e0cc2aad1dcfeab5;p=php Try to fix intermittently failing test case This test fails intermittently due to taskill reporting failure to kill the process (because it already has been terminated). We increase the sleep time, to hopefully prevent that from happening again. --- diff --git a/ext/standard/tests/streams/bug78883.phpt b/ext/standard/tests/streams/bug78883.phpt index 2dc1bc7d95..72380ddbd3 100644 --- a/ext/standard/tests/streams/bug78883.phpt +++ b/ext/standard/tests/streams/bug78883.phpt @@ -17,7 +17,7 @@ $cmd = 'cmd.exe "/c START ^"^" /WAIT ' . PHP_BINARY . ' -r ^"var_dump(fgets(STDI $proc = proc_open($cmd, $descriptorspec, $pipes); var_dump(is_resource($proc)); $pid = proc_get_status($proc)['pid']; -sleep(1); +sleep(2); $bug_is_present = !proc_get_status($proc)['running']; if (!$bug_is_present) { // if the bug is not present, it will hang waiting for stdin,