]> granicus.if.org Git - php/commitdiff
Try to fix intermittently failing test case
authorChristoph M. Becker <cmbecker69@gmx.de>
Fri, 3 Jan 2020 15:44:53 +0000 (16:44 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Fri, 3 Jan 2020 15:44:53 +0000 (16:44 +0100)
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.

ext/standard/tests/streams/bug78883.phpt

index 2dc1bc7d950446d52a0fae50dd20ac72d7b5659a..72380ddbd3e855fecb24e615c28d4e78aaab1b0e 100644 (file)
@@ -17,7 +17,7 @@ $cmd = 'cmd.exe "/c START ^"^" /WAIT ' . PHP_BINARY . ' -r ^"var_dump(fgets(STDI
 $proc = proc_open($cmd, $descriptorspec, $pipes);\r
 var_dump(is_resource($proc));\r
 $pid = proc_get_status($proc)['pid'];\r
-sleep(1);\r
+sleep(2);\r
 $bug_is_present = !proc_get_status($proc)['running'];\r
 if (!$bug_is_present) {\r
        // if the bug is not present, it will hang waiting for stdin,\r