Merge branch 'w32-testsuite-fixes-general' into 'master'

General fixes to W32 test suite

Closes #875

See merge request GNOME/glib!665
This commit is contained in:
Philip Withnall
2019-02-13 10:40:11 +00:00
7 changed files with 46 additions and 10 deletions

View File

@@ -8,7 +8,7 @@ test_autoptr (void)
g_autofree gchar *path = g_file_get_path (p);
g_autofree gchar *istr = g_inet_address_to_string (a);
g_assert_cmpstr (path, ==, "/blah");
g_assert_cmpstr (path, ==, G_DIR_SEPARATOR_S "blah");
g_assert_cmpstr (istr, ==, "127.0.0.1");
}

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