mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-19 05:39:17 +02: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
6c7a242e37
commit
428f6421fb
@ -3556,7 +3556,11 @@ test_query_zero_length_content_type (void)
|
|||||||
NULL, &error);
|
NULL, &error);
|
||||||
g_assert_no_error (error);
|
g_assert_no_error (error);
|
||||||
|
|
||||||
|
#ifndef HAVE_COCOA
|
||||||
g_assert_cmpstr (g_file_info_get_content_type (file_info), ==, "text/plain");
|
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 (&file_info);
|
||||||
g_clear_object (&empty_file);
|
g_clear_object (&empty_file);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user