diff options
author | Joe Watkins <krakjoe@php.net> | 2019-06-05 16:36:41 +0200 |
---|---|---|
committer | Joe Watkins <krakjoe@php.net> | 2019-06-05 16:36:41 +0200 |
commit | f47bd9f17a76cdd478b3a080520a8eda8b0c7024 (patch) | |
tree | acd9dc2844ba7953cd8843da6ff25fb382c56680 /ext/posix | |
parent | cc286e5bd5385474d9783d2876ce5a486986c746 (diff) | |
parent | 829d046241d584a789bf5491f5b784ed80bf9d87 (diff) | |
download | php-git-f47bd9f17a76cdd478b3a080520a8eda8b0c7024.tar.gz |
Merge branch 'PHP-7.4'
* PHP-7.4:
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 *** |