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
5485d6e3
Commit
5485d6e3
authored
Aug 11, 2015
by
Rik van der Heijden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check proxy return values in tests
parent
b7910314
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
test_proxy.cpp
tests/test_proxy.cpp
+2
-1
test_proxy_single_socket.cpp
tests/test_proxy_single_socket.cpp
+2
-1
test_proxy_terminate.cpp
tests/test_proxy_terminate.cpp
+2
-1
No files found.
tests/test_proxy.cpp
View file @
5485d6e3
...
@@ -165,7 +165,8 @@ server_task (void *ctx)
...
@@ -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
]);
...
...
tests/test_proxy_single_socket.cpp
View file @
5485d6e3
...
@@ -52,7 +52,8 @@ server_task (void *ctx)
...
@@ -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
);
...
...
tests/test_proxy_terminate.cpp
View file @
5485d6e3
...
@@ -61,7 +61,8 @@ server_task (void *ctx)
...
@@ -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
);
...
...
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