Commit 26dc6432 authored by Richard Newton's avatar Richard Newton

Add delays in test_connect_rid to allow time for socket to close before address reuse.

parent be6763e3
...@@ -86,6 +86,7 @@ tests/test_sub_forward_tipc ...@@ -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 \ ...@@ -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 ...@@ -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) ...@@ -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");
......
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