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
edf79dfe
Commit
edf79dfe
authored
Feb 04, 2019
by
Luca Boccassi
Committed by
Luca Boccassi
Feb 07, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: test_monitor check for DRAFT has to be kept up to date
Solution: check for the available version instead
parent
b20cb122
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
test_monitor.cpp
tests/test_monitor.cpp
+4
-2
testutil_monitoring.hpp
tests/testutil_monitoring.hpp
+3
-1
No files found.
tests/test_monitor.cpp
View file @
edf79dfe
...
...
@@ -116,7 +116,8 @@ void test_monitor_basic ()
test_context_socket_close_zero_linger
(
server_mon
);
}
#ifdef ZMQ_BUILD_DRAFT_API
#if (defined ZMQ_CURRENT_EVENT_VERSION && ZMQ_CURRENT_EVENT_VERSION >= 2) || \
(defined ZMQ_CURRENT_EVENT_VERSION && ZMQ_CURRENT_EVENT_VERSION_DRAFT >= 2)
void
test_monitor_versioned_basic
(
bind_function_t
bind_function_
,
const
char
*
expected_prefix_
)
{
...
...
@@ -240,7 +241,8 @@ int main ()
RUN_TEST
(
test_monitor_invalid_protocol_fails
);
RUN_TEST
(
test_monitor_basic
);
#ifdef ZMQ_BUILD_DRAFT_API
#if (defined ZMQ_CURRENT_EVENT_VERSION && ZMQ_CURRENT_EVENT_VERSION >= 2) || \
(defined ZMQ_CURRENT_EVENT_VERSION && ZMQ_CURRENT_EVENT_VERSION_DRAFT >= 2)
RUN_TEST
(
test_monitor_versioned_basic_tcp_ipv4
);
RUN_TEST
(
test_monitor_versioned_basic_tcp_ipv6
);
RUN_TEST
(
test_monitor_versioned_basic_ipc
);
...
...
tests/testutil_monitoring.hpp
View file @
edf79dfe
...
...
@@ -190,7 +190,9 @@ int expect_monitor_event_multiple (void *server_mon_,
return
count_of_expected_events
;
}
#ifdef ZMQ_BUILD_DRAFT_API
#if (defined ZMQ_CURRENT_EVENT_VERSION && ZMQ_CURRENT_EVENT_VERSION >= 2) \
||
(
defined
ZMQ_CURRENT_EVENT_VERSION
\
&&
ZMQ_CURRENT_EVENT_VERSION_DRAFT
>=
2
)
static
int64_t
get_monitor_event_internal_v2
(
void
*
monitor_
,
uint64_t
*
value_
,
char
**
local_address_
,
...
...
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