Skip to content

Commit 62bf0c4

Browse files
committed
Try to make regression test for Bug #69900 consistent
It has been observed that in rare cases, this regression test has spurious failures in CI. Try increasing the threshold for failure a bit and see if this makes it pass consistently.
1 parent c5f87ee commit 62bf0c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/standard/tests/streams/proc_open_bug69900.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Bug #69900 Commandline input/output weird behaviour with STDIO
66
error_reporting(E_ALL);
77

88
$fl = __DIR__ . DIRECTORY_SEPARATOR . "test69900.php";
9-
$max_ms = 10;
9+
$max_ms = 20;
1010

1111
$test_content = '<?php
1212
@@ -48,8 +48,8 @@ fclose($pipes[1]);
4848
proc_close($process);
4949

5050
/* It is expected that the first call takes more than the limit.
51-
* Allow one more to account for a possible process switch. */
52-
if ($moreThanLimit > 2) {
51+
* Allow two more to account for possible process switch, etc. */
52+
if ($moreThanLimit > 3) {
5353
echo "fgets() took more than $max_ms ms $moreThanLimit times\n";
5454
}
5555

0 commit comments

Comments
 (0)