[pango/fix-itemize-crash] Skip the test on macOS



commit 4db8ff2ea3b2b20c9b38670a3c49e73125f1673e
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Nov 13 11:12:34 2021 -0500

    Skip the test on macOS

 tests/testmisc.c | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/tests/testmisc.c b/tests/testmisc.c
index 4861c3d0..555f0dce 100644
--- a/tests/testmisc.c
+++ b/tests/testmisc.c
@@ -788,6 +788,12 @@ test_small_caps_crash (void)
   PangoFontDescription *desc;
   int w, h;
 
+  if (strcmp (G_OBJECT_TYPE_NAME (pango_cairo_font_map_get_default ()), "PangoCairoCoreTextFontMap") == 0)
+    {
+      g_test_skip ("This test needs a fontmap that supports Small-Caps");
+      return;
+    }
+
   context = pango_font_map_create_context (pango_cairo_font_map_get_default ());
   layout = pango_layout_new (context);
   desc = pango_font_description_from_string ("Cantarell Small-Caps 11");


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