mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 18:40:27 +01:00
Fixed testcase for ZMQ_MAX_SOCKETS
This commit is contained in:
parent
39455c2114
commit
188f7864ea
@ -34,8 +34,7 @@ int main (void)
|
||||
assert (zmq_ctx_get (ctx, ZMQ_SOCKET_LIMIT) == ZMQ_MAX_SOCKETS_DFLT);
|
||||
#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)
|
||||
== std::numeric_limits<int>::max());
|
||||
assert (zmq_ctx_get (ctx, ZMQ_SOCKET_LIMIT) == 65535);
|
||||
#endif
|
||||
assert (zmq_ctx_get (ctx, ZMQ_IO_THREADS) == ZMQ_IO_THREADS_DFLT);
|
||||
assert (zmq_ctx_get (ctx, ZMQ_IPV6) == 0);
|
||||
|
Loading…
Reference in New Issue
Block a user