Problem: GNU/Hurd does not implement getsockname for ipc

Solution: skip tests that use ipc://* as it's impossible to get the
address back for the client
This commit is contained in:
Luca Boccassi 2018-11-04 20:57:15 +00:00 committed by Luca Boccassi
parent bd9011fe3b
commit ffd99fbaf5
3 changed files with 5 additions and 4 deletions

View File

@ -1021,6 +1021,7 @@ endif
if ON_GNU
XFAIL_TESTS += tests/test_ipc_wildcard \
tests/test_reqrep_ipc \
tests/test_term_endpoint
endif

View File

@ -274,7 +274,7 @@ void test_inproc ()
TEST_ASSERT_EQUAL_INT (6000, test_blocking (2000, 6000, "inproc://c"));
}
#ifndef ZMQ_HAVE_WINDOWS
#if !defined(ZMQ_HAVE_WINDOWS) && !defined(ZMQ_HAVE_GNU)
void test_ipc ()
{
@ -295,7 +295,7 @@ int main ()
RUN_TEST (test_tcp);
RUN_TEST (test_inproc);
#ifndef ZMQ_HAVE_WINDOWS
#if !defined(ZMQ_HAVE_WINDOWS) && !defined(ZMQ_HAVE_GNU)
RUN_TEST (test_ipc);
#endif
RUN_TEST (test_reset_hwm);

View File

@ -68,7 +68,7 @@ void test_reconnect_ivl_against_pair_socket (const char *my_endpoint_,
test_context_socket_close (sc);
}
#ifndef ZMQ_HAVE_WINDOWS
#if !defined(ZMQ_HAVE_WINDOWS) && !defined(ZMQ_HAVE_GNU)
void test_reconnect_ivl_ipc (void)
{
const char *ipc_endpoint = "ipc:///tmp/test_reconnect_ivl";
@ -112,7 +112,7 @@ int main (void)
setup_test_environment ();
UNITY_BEGIN ();
#ifndef ZMQ_HAVE_WINDOWS
#if !defined(ZMQ_HAVE_WINDOWS) && !defined(ZMQ_HAVE_GNU)
RUN_TEST (test_reconnect_ivl_ipc);
#endif
RUN_TEST (test_reconnect_ivl_tcp_ipv4);