Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
26dc6432
Commit
26dc6432
authored
Mar 17, 2014
by
Richard Newton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add delays in test_connect_rid to allow time for socket to close before address reuse.
parent
be6763e3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletion
+6
-1
.gitignore
.gitignore
+1
-0
Makefile.am
tests/Makefile.am
+3
-1
test_connect_rid.cpp
tests/test_connect_rid.cpp
+2
-0
No files found.
.gitignore
View file @
26dc6432
...
...
@@ -86,6 +86,7 @@ tests/test_sub_forward_tipc
tests/test_term_endpoint_tipc
tests/test_many_sockets
tests/test_diffserv
tests/test_connect_rid
tests/test_srcfd
tests/test_stream_disconnect
tests/test_proxy_chain
...
...
tests/Makefile.am
View file @
26dc6432
...
...
@@ -47,7 +47,8 @@ noinst_PROGRAMS = test_system \
test_abstract_ipc
\
test_many_sockets
\
test_ipc_wildcard
\
test_diffserv
test_diffserv
\
test_connect_rid
if
!ON_MINGW
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_ipc_wildcard_SOURCES
=
test_ipc_wildcard.cpp
test_diffserv_SOURCES
=
test_diffserv.cpp
test_connect_rid_SOURCES
=
test_connect_rid.cpp
if
!ON_MINGW
test_shutdown_stress_SOURCES
=
test_shutdown_stress.cpp
test_pair_ipc_SOURCES
=
test_pair_ipc.cpp testutil.hpp
...
...
tests/test_connect_rid.cpp
View file @
26dc6432
...
...
@@ -173,7 +173,9 @@ int main (void)
ctx
=
zmq_ctx_new
();
assert
(
ctx
);
test_stream_2_stream
(
ctx
);
msleep
(
100
);
// Give time for bound socket to be closed.
test_router_2_router
(
ctx
,
false
);
msleep
(
100
);
// Give time for bound socket to be closed.
test_router_2_router
(
ctx
,
true
);
zmq_ctx_destroy
(
ctx
);
printf
(
"'test_connect_rid' passed"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment