mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 18:55:10 +01:00
Merge pull request #1168 from ricnewton/master
Fix test broken when we changed FD_SETSIZE.
This commit is contained in:
commit
81485c7688
@ -31,7 +31,7 @@ int main (void)
|
||||
|
||||
assert (zmq_ctx_get (ctx, ZMQ_MAX_SOCKETS) == ZMQ_MAX_SOCKETS_DFLT);
|
||||
#if defined(ZMQ_USE_SELECT)
|
||||
assert (zmq_ctx_get (ctx, ZMQ_SOCKET_LIMIT) == ZMQ_MAX_SOCKETS_DFLT);
|
||||
assert (zmq_ctx_get (ctx, ZMQ_SOCKET_LIMIT) == FD_SETSIZE - 1);
|
||||
#elif defined(ZMQ_USE_POLL) || defined(ZMQ_USE_EPOLL) \
|
||||
|| defined(ZMQ_USE_DEVPOLL) || defined(ZMQ_USE_KQUEUE)
|
||||
assert (zmq_ctx_get (ctx, ZMQ_SOCKET_LIMIT) == 65535);
|
||||
|
Loading…
Reference in New Issue
Block a user