mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-06 21:56:25 +01:00
Check proxy return values in tests
This commit is contained in:
@@ -165,7 +165,8 @@ server_task (void *ctx)
|
|||||||
threads[thread_nbr] = zmq_threadstart (&server_worker, ctx);
|
threads[thread_nbr] = zmq_threadstart (&server_worker, ctx);
|
||||||
|
|
||||||
// Connect backend to frontend via a proxy
|
// Connect backend to frontend via a proxy
|
||||||
zmq_proxy_steerable (frontend, backend, NULL, control);
|
rc = zmq_proxy_steerable (frontend, backend, NULL, control);
|
||||||
|
assert (rc == 0);
|
||||||
|
|
||||||
for (thread_nbr = 0; thread_nbr < QT_WORKERS; thread_nbr++)
|
for (thread_nbr = 0; thread_nbr < QT_WORKERS; thread_nbr++)
|
||||||
zmq_threadclose (threads[thread_nbr]);
|
zmq_threadclose (threads[thread_nbr]);
|
||||||
|
|||||||
@@ -52,7 +52,8 @@ server_task (void *ctx)
|
|||||||
assert (rc == 0);
|
assert (rc == 0);
|
||||||
|
|
||||||
// Use rep as both frontend and backend
|
// Use rep as both frontend and backend
|
||||||
zmq_proxy_steerable (rep, rep, NULL, control);
|
rc = zmq_proxy_steerable (rep, rep, NULL, control);
|
||||||
|
assert (rc == 0);
|
||||||
|
|
||||||
rc = zmq_close (rep);
|
rc = zmq_close (rep);
|
||||||
assert (rc == 0);
|
assert (rc == 0);
|
||||||
|
|||||||
@@ -61,7 +61,8 @@ server_task (void *ctx)
|
|||||||
assert (rc == 0);
|
assert (rc == 0);
|
||||||
|
|
||||||
// Connect backend to frontend via a proxy
|
// Connect backend to frontend via a proxy
|
||||||
zmq_proxy_steerable (frontend, backend, NULL, control);
|
rc = zmq_proxy_steerable (frontend, backend, NULL, control);
|
||||||
|
assert (rc == 0);
|
||||||
|
|
||||||
rc = zmq_close (frontend);
|
rc = zmq_close (frontend);
|
||||||
assert (rc == 0);
|
assert (rc == 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user