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.
This commit is contained in:
Руслан Ижбулатов 2019-02-08 20:31:21 +00:00 committed by Philip Withnall
parent 14aae264d4
commit 00908bc446

View File

@ -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() cant understand scope IDs");
#endif
}
static void