From 00908bc4467e3a6cd22fc7a4b635932c197b0790 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1?= =?UTF-8?q?=D1=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= Date: Fri, 8 Feb 2019 20:31:21 +0000 Subject: [PATCH] network-address test: Disable scope ID tests on Windows getaddrinfo() in winsock can't understand scope IDs. There's no obvious way to fix that, short of re-implementing that function, so disable that part of the test on Windows. --- gio/tests/network-address.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gio/tests/network-address.c b/gio/tests/network-address.c index adc678adf..c62afccd2 100644 --- a/gio/tests/network-address.c +++ b/gio/tests/network-address.c @@ -271,6 +271,7 @@ find_ifname_and_index (void) static void test_scope_id (GSocketConnectable *addr) { +#ifndef G_OS_WIN32 GSocketAddressEnumerator *addr_enum; GSocketAddress *saddr; GInetSocketAddress *isaddr; @@ -300,6 +301,9 @@ test_scope_id (GSocketConnectable *addr) g_assert (saddr == NULL); g_object_unref (addr_enum); +#else + g_test_skip ("winsock2 getaddrinfo() can’t understand scope IDs"); +#endif } static void