tests: Fix resources test on macOS

The content type detection is not very specific on macOS.
This commit is contained in:
Nirbheek Chauhan 2022-10-26 15:43:58 +05:30
parent 9fa3915236
commit 958d0f9b9b
2 changed files with 4 additions and 2 deletions

View File

@ -856,8 +856,6 @@ if meson.can_run_host_binaries()
gio_tests += {
'resources' : {
'extra_sources' : resources_extra_sources,
# FIXME: https://gitlab.gnome.org/GNOME/glib/-/issues/1392
'should_fail' : host_system == 'darwin',
},
}
endif

View File

@ -805,7 +805,11 @@ test_uri_query_info (void)
g_assert_nonnull (content_type);
mime_type = g_content_type_get_mime_type (content_type);
g_assert_nonnull (mime_type);
#ifdef G_OS_DARWIN
g_assert_cmpstr (mime_type, ==, "text/*");
#else
g_assert_cmpstr (mime_type, ==, "text/plain");
#endif
g_free (mime_type);
g_object_unref (info);