summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Watkins <krakjoe@php.net>2019-06-05 16:34:50 +0200
committerJoe Watkins <krakjoe@php.net>2019-06-05 16:34:50 +0200
commitf4474e57244dfcc52f278227fd9f03fd84f04167 (patch)
tree2f7dea71001520c01b095537eff08cb8514a5cbc
parenta3e6b50442db106d354931ecaa0284a200609be6 (diff)
downloadphp-git-f4474e57244dfcc52f278227fd9f03fd84f04167.tar.gz
fix flaky posix test
-rw-r--r--ext/posix/tests/posix_errno_variation2.phpt11
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 23dc910b9a..52d076cc63 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());
-
?>
--EXPECTF--
*** Test by calling function with pid error ***