mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 14:36:13 +01:00
tests: Check for public.text not text/plain on OSX
The "content type" on OSX is a Uniform Type Identifier not a MIME type, so make sure to use the right format in the empty file test.
This commit is contained in:
parent
9d0d30c9d2
commit
8f85fa163b
@ -3556,7 +3556,11 @@ test_query_zero_length_content_type (void)
|
||||
NULL, &error);
|
||||
g_assert_no_error (error);
|
||||
|
||||
#ifndef HAVE_COCOA
|
||||
g_assert_cmpstr (g_file_info_get_content_type (file_info), ==, "text/plain");
|
||||
#else
|
||||
g_assert_cmpstr (g_file_info_get_content_type (file_info), ==, "public.text");
|
||||
#endif
|
||||
|
||||
g_clear_object (&file_info);
|
||||
g_clear_object (&empty_file);
|
||||
|
Loading…
Reference in New Issue
Block a user