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
1e26a93c
Commit
1e26a93c
authored
Feb 06, 2019
by
Luca Boccassi
Committed by
Luca Boccassi
Feb 07, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: test_monitor fails in valgrind
Solution: expect additional events
parent
c1b374fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
test_monitor.cpp
tests/test_monitor.cpp
+13
-2
No files found.
tests/test_monitor.cpp
View file @
1e26a93c
...
...
@@ -94,7 +94,12 @@ void test_monitor_basic ()
event
=
get_monitor_event
(
client_mon
,
NULL
,
NULL
);
assert
(
event
==
ZMQ_EVENT_CONNECTED
);
expect_monitor_event
(
client_mon
,
ZMQ_EVENT_HANDSHAKE_SUCCEEDED
);
expect_monitor_event
(
client_mon
,
ZMQ_EVENT_MONITOR_STOPPED
);
event
=
get_monitor_event
(
client_mon
,
NULL
,
NULL
);
if
(
event
==
ZMQ_EVENT_DISCONNECTED
)
{
expect_monitor_event
(
client_mon
,
ZMQ_EVENT_CONNECT_RETRIED
);
expect_monitor_event
(
client_mon
,
ZMQ_EVENT_MONITOR_STOPPED
);
}
else
TEST_ASSERT_EQUAL_INT
(
ZMQ_EVENT_MONITOR_STOPPED
,
event
);
// This is the flow of server events
expect_monitor_event
(
server_mon
,
ZMQ_EVENT_LISTENING
);
...
...
@@ -181,7 +186,13 @@ void test_monitor_versioned_basic (bind_function_t bind_function_,
expect_monitor_event_v2
(
client_mon
,
ZMQ_EVENT_HANDSHAKE_SUCCEEDED
,
client_local_address
,
client_remote_address
);
expect_monitor_event_v2
(
client_mon
,
ZMQ_EVENT_MONITOR_STOPPED
,
""
,
""
);
event
=
get_monitor_event_v2
(
client_mon
,
NULL
,
NULL
,
NULL
);
if
(
event
==
ZMQ_EVENT_DISCONNECTED
)
{
expect_monitor_event_v2
(
client_mon
,
ZMQ_EVENT_CONNECT_RETRIED
,
client_local_address
,
client_remote_address
);
expect_monitor_event_v2
(
client_mon
,
ZMQ_EVENT_MONITOR_STOPPED
,
""
,
""
);
}
else
TEST_ASSERT_EQUAL_INT
(
ZMQ_EVENT_MONITOR_STOPPED
,
event
);
// This is the flow of server events
expect_monitor_event_v2
(
server_mon
,
ZMQ_EVENT_LISTENING
,
...
...
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