mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 23:46:17 +01:00
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:
parent
14aae264d4
commit
00908bc446
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user