com php-src: fix flaky test on OSX: ext/sockets/tests/socket_ create_listen-nobind.phpt
| From: | Joe Watkins | Date: | Wed, 12 Jun 2019 06:33:07 +0000 |
| Subject: | com php-src: fix flaky test on OSX: ext/sockets/tests/socket_ create_listen-nobind.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-106691@lists.php.net to get a copy of this message | ||
Commit: abe38b5e4823b08cdec72ca6207fc41a9a0a3152
Author: Joe Watkins <krakjoe@php.net> Wed, 12 Jun 2019 08:33:07 +0200
Parents: eac238fb6cb6f38c2f3ba1d0fa129ea8d42fec38
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=abe38b5e4823b08cdec72ca6207fc41a9a0a3152
Log:
fix flaky test on OSX
Changed paths:
M ext/sockets/tests/socket_create_listen-nobind.phpt
Diff:
diff --git a/ext/sockets/tests/socket_create_listen-nobind.phpt
b/ext/sockets/tests/socket_create_listen-nobind.phpt
index c23ed5b..bdd4d3d 100644
--- a/ext/sockets/tests/socket_create_listen-nobind.phpt
+++ b/ext/sockets/tests/socket_create_listen-nobind.phpt
@@ -14,7 +14,7 @@ if (fileowner($filename) == 0) {
}
--FILE--
<?php
-$sock = socket_create_listen(80);
+$sock = socket_create_listen(PHP_OS == "Darwin" ? 427 : 80);
--EXPECTF--
Warning: socket_create_listen(): unable to bind to given address [13]: Permission denied in %s on
line %d
--CLEAN--