[glib: 5/11] gio/tests: fix various content type guesses on win32
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 5/11] gio/tests: fix various content type guesses on win32
- Date: Thu, 17 Mar 2022 15:14:17 +0000 (UTC)
commit ab0c00bd7ee71745b9bb401c75482018a664b036
Author: Marc-André Lureau <marcandre lureau redhat com>
Date: Wed Feb 16 15:27:12 2022 +0400
gio/tests: fix various content type guesses on win32
Signed-off-by: Marc-André Lureau <marcandre lureau redhat com>
gio/tests/contenttype.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gio/tests/contenttype.c b/gio/tests/contenttype.c
index cb10c86c0..081a6f005 100644
--- a/gio/tests/contenttype.c
+++ b/gio/tests/contenttype.c
@@ -56,7 +56,8 @@ test_guess (void)
g_free (res);
g_free (expected);
- /* Sadly OSX just doesn't have as large and robust of a mime type database as Linux */
+ /* Sadly win32 & OSX just don't have as large and robust of a mime type database as Linux */
+#ifndef G_OS_WIN32
#ifndef __APPLE__
res = g_content_type_guess ("foo", data, sizeof (data) - 1, &uncertain);
expected = g_content_type_from_mime_type ("text/plain");
@@ -110,7 +111,7 @@ test_guess (void)
g_assert_false (uncertain);
g_free (res);
g_free (expected);
-#endif
+#endif /* __APPLE__ */
res = g_content_type_guess (NULL, (guchar *)"%!PS-Adobe-2.0 EPSF-1.2", 23, &uncertain);
expected = g_content_type_from_mime_type ("image/x-eps");
@@ -126,6 +127,7 @@ test_guess (void)
g_assert_false (uncertain);
g_free (res);
g_free (expected);
+#endif /* G_OS_WIN32 */
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]