Commit 275a89ac authored by Simon Giesecke's avatar Simon Giesecke

Problem: test_many_sockets does not show number of sockets that could be created

Solution: add diagnostic output
parent bd129e78
...@@ -47,7 +47,9 @@ void test_system_max () ...@@ -47,7 +47,9 @@ void test_system_max ()
break; break;
sockets.push_back (socket); sockets.push_back (socket);
} }
assert ((int) sockets.size () <= no_of_sockets); assert (static_cast<int> (sockets.size ()) <= no_of_sockets);
printf ("Socket creation failed after %i sockets\n",
static_cast<int> (sockets.size ()));
// System is out of resources, further calls to zmq_socket should return NULL // System is out of resources, further calls to zmq_socket should return NULL
for (unsigned int i = 0; i < 10; ++i) { for (unsigned int i = 0; i < 10; ++i) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment