Skip to content

Commit 829d046

Browse files
committed
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: fix flaky posix test
2 parents b964298 + 249c200 commit 829d046

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

ext/posix/tests/posix_errno_variation2.phpt

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,14 @@ Francesco Fullone ff@ideato.it
77
--SKIPIF--
88
<?php
99
if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
10-
if(!extension_loaded("pcntl")) print "skip - PCNTL extension required";
1110
?>
1211
--FILE--
1312
<?php
14-
1513
echo "*** Test by calling function with pid error ***\n";
1614

17-
$pid = 10000;
18-
19-
do {
20-
$pid += 1;
21-
$result = shell_exec("ps -p " . $pid);
22-
} while (strstr($pid, $result));
15+
posix_kill((2 ** 22) + 1, SIGKILL);
2316

24-
posix_kill($pid, SIGKILL);
2517
var_dump(posix_errno());
26-
2718
?>
2819
--EXPECT--
2920
*** Test by calling function with pid error ***

0 commit comments

Comments
 (0)