com php-src: Merge branch 'PHP-7.2' into PHP-7.3: ext/posix/tes ts/posix_errno_variation2.phpt
| From: | Joe Watkins | Date: | Wed, 05 Jun 2019 14:35:43 +0000 |
| Subject: | com php-src: Merge branch 'PHP-7.2' into PHP-7.3: ext/posix/tes ts/posix_errno_variation2.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-106571@lists.php.net to get a copy of this message | ||
Commit: 249c20023d4446d81a2904dc5e8d3aa4a3a2d016
Author: Joe Watkins <krakjoe@php.net> Wed, 5 Jun 2019 16:35:43 +0200
Parents: d154301866a0afaae5a70677637490b3a3b5c62e f4474e57244dfcc52f278227fd9f03fd84f04167
Branches: PHP-7.3 PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=249c20023d4446d81a2904dc5e8d3aa4a3a2d016
Log:
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
fix flaky posix test
Changed paths:
MM ext/posix/tests/posix_errno_variation2.phpt
Diff:
diff --cc ext/posix/tests/posix_errno_variation2.phpt
index ff44b70,52d076c..6335fa5
--- a/ext/posix/tests/posix_errno_variation2.phpt
+++ b/ext/posix/tests/posix_errno_variation2.phpt
@@@ -10,21 -10,12 +10,12 @@@ Francesco Fullone ff@ideato.i
?>
--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--
+--EXPECT--
*** Test by calling function with pid error ***
int(3)