[pango/pango2: 16/112] test-itemize: Leave out faceid




commit 2f8b99b5cbfa1105832535a168ebba6988fc9dba
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jan 4 23:33:19 2022 -0500

    test-itemize: Leave out faceid
    
    The faceid in the serialized font description would
    make the test output backend-dependent, so leave it
    out for now. This makes
    
    PANGOCAIRO_BACKEND=fc2 ./test-itemize
    
    succeed.

 tests/test-itemize.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/tests/test-itemize.c b/tests/test-itemize.c
index 80e02cc9b..aa217a3df 100644
--- a/tests/test-itemize.c
+++ b/tests/test-itemize.c
@@ -170,6 +170,8 @@ test_file (const gchar *filename, GString *string)
       GSList *a;
 
       desc = pango_font_describe (item->analysis.font);
+      /* Leave out faceid for now to avoid backend-dependent test output */
+      pango_font_description_unset_fields (desc, PANGO_FONT_MASK_FACEID);
       font = pango_font_description_to_string (desc);
 
       if (l != items)


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