mirror of
https://github.com/php/php-src.git
synced 2025-08-21 01:45:16 +02:00
fix flaky posix test
This commit is contained in:
parent
a3e6b50442
commit
f4474e5724
1 changed files with 1 additions and 10 deletions
|
@ -7,23 +7,14 @@ Francesco Fullone ff@ideato.it
|
|||
--SKIPIF--
|
||||
<?php
|
||||
if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
|
||||
if(!extension_loaded("pcntl")) print "skip - PCNTL extension required";
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
echo "*** Test by calling function with pid error ***\n";
|
||||
|
||||
$pid = 10000;
|
||||
posix_kill((2 ** 22) + 1, SIGKILL);
|
||||
|
||||
do {
|
||||
$pid += 1;
|
||||
$result = shell_exec("ps -p " . $pid);
|
||||
} while (strstr($pid, $result));
|
||||
|
||||
posix_kill($pid, SIGKILL);
|
||||
var_dump(posix_errno());
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
*** Test by calling function with pid error ***
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue