From 30e7a00017d0e21c033f5dc0da0da48b033b105f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Fri, 14 Oct 2022 17:09:55 +0400 Subject: [PATCH] tests/contenttype: icon name text/plain doesn't have text-x-generic on win32 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The g_content_type_get_icon() function for win32 can lookup the DefaultIcon associated with .txt and return a different result. Signed-off-by: Marc-André Lureau --- gio/tests/contenttype.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gio/tests/contenttype.c b/gio/tests/contenttype.c index 6cfd366ff..7fd97f453 100644 --- a/gio/tests/contenttype.c +++ b/gio/tests/contenttype.c @@ -252,10 +252,10 @@ test_icon (void) names = g_themed_icon_get_names (G_THEMED_ICON (icon)); #ifdef __APPLE__ g_assert_true (g_strv_contains (names, "text-*")); +#elif defined(G_OS_WIN32) + g_assert_cmpuint (g_strv_length ((GStrv) names), >, 0); #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 }