summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-11-13 11:12:34 -0500
committerMatthias Clasen <mclasen@redhat.com>2021-11-13 11:12:34 -0500
commit4db8ff2ea3b2b20c9b38670a3c49e73125f1673e (patch)
treedb8b7a76d7b35f16f056833ad3fdc1e763a52964
parent60f8171f062b4653a41cce02a582caa25331c68f (diff)
downloadpango-fix-itemize-crash.tar.gz
Skip the test on macOSfix-itemize-crash
-rw-r--r--tests/testmisc.c6
1 files changed, 6 insertions, 0 deletions
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");