[pango/serialization-improvements] Skip layout tests witout fontconfig
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/serialization-improvements] Skip layout tests witout fontconfig
- Date: Thu, 25 Nov 2021 02:40:10 +0000 (UTC)
commit 13356711f2c29b80ef3841baf86f2071621e1732
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Nov 24 21:39:24 2021 -0500
Skip layout tests witout fontconfig
Our new, more precise font checks rely on
data from fontconfig to identify fonts
uniquely.
tests/test-layout.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/tests/test-layout.c b/tests/test-layout.c
index 93a6118f..3e56fb48 100644
--- a/tests/test-layout.c
+++ b/tests/test-layout.c
@@ -46,6 +46,12 @@ test_layout (gconstpointer d)
PangoContext *context;
PangoLayout *layout;
+ if (!PANGO_IS_FC_FONT_MAP (pango_cairo_font_map_get_default ()))
+ {
+ g_test_skip ("Not an fc fontmap. Skipping...");
+ return;
+ }
+
char *old_locale = g_strdup (setlocale (LC_ALL, NULL));
setlocale (LC_ALL, "en_US.UTF-8");
if (strstr (setlocale (LC_ALL, NULL), "en_US") == NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]