[
https://issues.apache.org/jira/browse/DISPATCH-1282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16953240#comment-16953240
]
ASF subversion and git services commented on DISPATCH-1282:
-----------------------------------------------------------
Commit 76ef8420f8b87e4c3699462998d05b8d9156c1c2 in qpid-dispatch's branch
refs/heads/master from Jiri Danek
[ https://gitbox.apache.org/repos/asf?p=qpid-dispatch.git;h=76ef842 ]
DISPATCH-1282 - Fix port checking in dispatch tests on macOS
On macOS, sockets cannot be reused after a failure
$ python
>>> import socket
>>> s = socket.socket()
>>> s.connect(('127.0.0.1', 8888))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py",
line 228, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 61] Connection refused
>>> s.connect(('127.0.0.1', 8888))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py",
line 228, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 22] Invalid argument
>>> s.close()
>>> s.connect(('127.0.0.1', 8888))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py",
line 228, in meth
return getattr(self._sock,name)(*args)
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py",
line 174, in _dummy
raise error(EBADF, 'Bad file descriptor')
socket.error: [Errno 9] Bad file descriptor
With this, the test failures in dispatch tests now are
89% tests passed, 6 tests failed out of 57
Total Test time (real) = 1747.39 sec
The following tests FAILED:
9 - unit_tests (SEGFAULT)
23 - system_tests_policy (Timeout)
28 - system_tests_sasl_plain (Failed)
38 - system_tests_auth_service_plugin (Failed)
39 - system_tests_authz_service_plugin (Failed)
48 - system_tests_bad_configuration (Failed)
> Support for building on macOS
> -----------------------------
>
> Key: DISPATCH-1282
> URL: https://issues.apache.org/jira/browse/DISPATCH-1282
> Project: Qpid Dispatch
> Issue Type: New Feature
> Affects Versions: 1.5.0
> Reporter: Jiri Daněk
> Priority: Major
> Labels: macOS
>
> Currently, Dispatch compilation fails on "rt" library being unavailable.
> All Dispatch dependencies (Qpid Proton, libwebsockets, ...) can be built on
> macOS.
> I am attaching a patch which allows to compile dispatch on OSX and run it.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]