[pango/pango2: 136/201] test-itemize: Leave out faceid




commit ad87b1c182fca679f69189e5a9cdbbad545340d7
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 80e02cc9..aa217a3d 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]