mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-29 04:17:57 +01:00
Problem: test_monitor check for DRAFT has to be kept up to date
Solution: check for the available version instead
This commit is contained in:
committed by
Luca Boccassi
parent
b20cb122d9
commit
edf79dfefc
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user