[glib: 8/11] gio/tests: fix test_icon on win32




commit 5f1bae1594cdc9a826d1ab99c3b5aef74a917572
Author: Marc-André Lureau <marcandre lureau redhat com>
Date:   Wed Feb 16 15:39:39 2022 +0400

    gio/tests: fix test_icon on win32
    
    Signed-off-by: Marc-André Lureau <marcandre lureau redhat com>

 gio/tests/contenttype.c | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/gio/tests/contenttype.c b/gio/tests/contenttype.c
index f280213b5..df56eb596 100644
--- a/gio/tests/contenttype.c
+++ b/gio/tests/contenttype.c
@@ -253,7 +253,9 @@ test_icon (void)
 #ifdef __APPLE__
       g_assert_true (g_strv_contains (names, "text-*"));
 #else
+#ifndef G_OS_WIN32
       g_assert_true (g_strv_contains (names, "text-plain"));
+#endif
       g_assert_true (g_strv_contains (names, "text-x-generic"));
 #endif
     }
@@ -268,9 +270,13 @@ test_icon (void)
       const gchar *const *names;
 
       names = g_themed_icon_get_names (G_THEMED_ICON (icon));
+#ifdef G_OS_WIN32
+      g_assert_true (g_strv_contains (names, "text-x-generic"));
+#else
       g_assert_true (g_strv_contains (names, "application-rtf"));
 #ifndef __APPLE__
       g_assert_true (g_strv_contains (names, "x-office-document"));
+#endif
 #endif
     }
   g_object_unref (icon);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]