[glib: 5/8] network-address test: Disable scope ID tests on Windows



commit 00908bc4467e3a6cd22fc7a4b635932c197b0790
Author: Руслан Ижбулатов <lrn1986 gmail com>
Date:   Fri Feb 8 20:31:21 2019 +0000

    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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]