[pango/test-shape-fix: 1/2] tests: Make test-itemize work standalone




commit 979177c4b2666071c03a43213fc13ec92e5669dc
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Nov 6 13:12:39 2020 -0500

    tests: Make test-itemize work standalone
    
    Make test-itemize FILE work again. We were forgetting
    create the context early enough.

 tests/test-itemize.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/test-itemize.c b/tests/test-itemize.c
index b22f3c2f..ca18032d 100644
--- a/tests/test-itemize.c
+++ b/tests/test-itemize.c
@@ -250,8 +250,6 @@ test_itemize (gconstpointer d)
       return;
     }
 
-  context = pango_font_map_create_context (pango_cairo_font_map_get_default ());
-
   expected_file = get_expected_filename (filename);
 
   dump = g_string_sized_new (0);
@@ -294,6 +292,8 @@ main (int argc, char *argv[])
 
   g_test_init (&argc, &argv, NULL);
 
+  context = pango_font_map_create_context (pango_cairo_font_map_get_default ());
+
   /* allow to easily generate expected output for new test cases */
   if (argc > 1)
     {


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