mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-19 18:03:50 +00:00
Merge pull request #930 from ricnewton/master
Add delays in test_connect_rid
This commit is contained in:
commit
5ced51b753
1
.gitignore
vendored
1
.gitignore
vendored
@ -86,6 +86,7 @@ tests/test_sub_forward_tipc
|
|||||||
tests/test_term_endpoint_tipc
|
tests/test_term_endpoint_tipc
|
||||||
tests/test_many_sockets
|
tests/test_many_sockets
|
||||||
tests/test_diffserv
|
tests/test_diffserv
|
||||||
|
tests/test_connect_rid
|
||||||
tests/test_srcfd
|
tests/test_srcfd
|
||||||
tests/test_stream_disconnect
|
tests/test_stream_disconnect
|
||||||
tests/test_proxy_chain
|
tests/test_proxy_chain
|
||||||
|
@ -47,7 +47,8 @@ noinst_PROGRAMS = test_system \
|
|||||||
test_abstract_ipc \
|
test_abstract_ipc \
|
||||||
test_many_sockets \
|
test_many_sockets \
|
||||||
test_ipc_wildcard \
|
test_ipc_wildcard \
|
||||||
test_diffserv
|
test_diffserv \
|
||||||
|
test_connect_rid
|
||||||
|
|
||||||
if !ON_MINGW
|
if !ON_MINGW
|
||||||
noinst_PROGRAMS += test_shutdown_stress \
|
noinst_PROGRAMS += test_shutdown_stress \
|
||||||
@ -114,6 +115,7 @@ test_abstract_ipc_SOURCES = test_abstract_ipc.cpp
|
|||||||
test_many_sockets_SOURCES = test_many_sockets.cpp
|
test_many_sockets_SOURCES = test_many_sockets.cpp
|
||||||
test_ipc_wildcard_SOURCES = test_ipc_wildcard.cpp
|
test_ipc_wildcard_SOURCES = test_ipc_wildcard.cpp
|
||||||
test_diffserv_SOURCES = test_diffserv.cpp
|
test_diffserv_SOURCES = test_diffserv.cpp
|
||||||
|
test_connect_rid_SOURCES = test_connect_rid.cpp
|
||||||
if !ON_MINGW
|
if !ON_MINGW
|
||||||
test_shutdown_stress_SOURCES = test_shutdown_stress.cpp
|
test_shutdown_stress_SOURCES = test_shutdown_stress.cpp
|
||||||
test_pair_ipc_SOURCES = test_pair_ipc.cpp testutil.hpp
|
test_pair_ipc_SOURCES = test_pair_ipc.cpp testutil.hpp
|
||||||
|
@ -173,7 +173,9 @@ int main (void)
|
|||||||
ctx = zmq_ctx_new ();
|
ctx = zmq_ctx_new ();
|
||||||
assert (ctx);
|
assert (ctx);
|
||||||
test_stream_2_stream (ctx);
|
test_stream_2_stream (ctx);
|
||||||
|
msleep(100); // Give time for bound socket to be closed.
|
||||||
test_router_2_router (ctx, false);
|
test_router_2_router (ctx, false);
|
||||||
|
msleep(100); // Give time for bound socket to be closed.
|
||||||
test_router_2_router (ctx, true);
|
test_router_2_router (ctx, true);
|
||||||
zmq_ctx_destroy (ctx);
|
zmq_ctx_destroy (ctx);
|
||||||
printf ("'test_connect_rid' passed");
|
printf ("'test_connect_rid' passed");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user