diff options
author | Joe Watkins <krakjoe@php.net> | 2019-06-05 16:35:43 +0200 |
---|---|---|
committer | Joe Watkins <krakjoe@php.net> | 2019-06-05 16:35:43 +0200 |
commit | 249c20023d4446d81a2904dc5e8d3aa4a3a2d016 (patch) | |
tree | b47b7cb562dd197dfe4a483749c4c6fd993cb0ee /ext/posix | |
parent | d154301866a0afaae5a70677637490b3a3b5c62e (diff) | |
parent | f4474e57244dfcc52f278227fd9f03fd84f04167 (diff) | |
download | php-git-249c20023d4446d81a2904dc5e8d3aa4a3a2d016.tar.gz |
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
fix flaky posix test
Diffstat (limited to 'ext/posix')
-rw-r--r-- | ext/posix/tests/posix_errno_variation2.phpt | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/ext/posix/tests/posix_errno_variation2.phpt b/ext/posix/tests/posix_errno_variation2.phpt index ff44b70cb6..6335fa5327 100644 --- a/ext/posix/tests/posix_errno_variation2.phpt +++ b/ext/posix/tests/posix_errno_variation2.phpt @@ -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; - -do { - $pid += 1; - $result = shell_exec("ps -p " . $pid); -} while (strstr($pid, $result)); +posix_kill((2 ** 22) + 1, SIGKILL); -posix_kill($pid, SIGKILL); var_dump(posix_errno()); - ?> --EXPECT-- *** Test by calling function with pid error *** |