summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2022-10-18 14:41:59 -0400
committerRay Strode <rstrode@redhat.com>2022-10-18 16:02:49 -0400
commit8f85fa163b3e68d48e221059004fe334cf5303e4 (patch)
tree7552f0b288643f246e1d8c988409b1f5f507a2af
parent9d0d30c9d232df4c8c08984934fa6b76efb1922c (diff)
downloadglib-8f85fa163b3e68d48e221059004fe334cf5303e4.tar.gz
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.
-rw-r--r--gio/tests/file.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gio/tests/file.c b/gio/tests/file.c
index ccac590a4..79c6d57bb 100644
--- a/gio/tests/file.c
+++ b/gio/tests/file.c
@@ -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);