From 8926cb3ddbb7f8f31c364b177c106745baff45bc Mon Sep 17 00:00:00 2001 From: Richard Newton Date: Tue, 26 Aug 2014 08:36:51 +0100 Subject: [PATCH] Fix test broken when we changed FD_SETSIZE. --- tests/test_ctx_options.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_ctx_options.cpp b/tests/test_ctx_options.cpp index ecdeb3ca..17eccc9e 100644 --- a/tests/test_ctx_options.cpp +++ b/tests/test_ctx_options.cpp @@ -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);