mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-09 04:15:49 +01:00
tests: Fix resources test on macOS
The content type detection is not very specific on macOS.
This commit is contained in:
parent
9fa3915236
commit
958d0f9b9b
@ -856,8 +856,6 @@ if meson.can_run_host_binaries()
|
|||||||
gio_tests += {
|
gio_tests += {
|
||||||
'resources' : {
|
'resources' : {
|
||||||
'extra_sources' : resources_extra_sources,
|
'extra_sources' : resources_extra_sources,
|
||||||
# FIXME: https://gitlab.gnome.org/GNOME/glib/-/issues/1392
|
|
||||||
'should_fail' : host_system == 'darwin',
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
endif
|
endif
|
||||||
|
@ -805,7 +805,11 @@ test_uri_query_info (void)
|
|||||||
g_assert_nonnull (content_type);
|
g_assert_nonnull (content_type);
|
||||||
mime_type = g_content_type_get_mime_type (content_type);
|
mime_type = g_content_type_get_mime_type (content_type);
|
||||||
g_assert_nonnull (mime_type);
|
g_assert_nonnull (mime_type);
|
||||||
|
#ifdef G_OS_DARWIN
|
||||||
|
g_assert_cmpstr (mime_type, ==, "text/*");
|
||||||
|
#else
|
||||||
g_assert_cmpstr (mime_type, ==, "text/plain");
|
g_assert_cmpstr (mime_type, ==, "text/plain");
|
||||||
|
#endif
|
||||||
g_free (mime_type);
|
g_free (mime_type);
|
||||||
|
|
||||||
g_object_unref (info);
|
g_object_unref (info);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user