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:
Ray Strode 2022-10-18 14:41:59 -04:00 committed by Philip Withnall
parent 6c7a242e37
commit 428f6421fb

View File

@ -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);