summaryrefslogtreecommitdiff
path: root/tests/test-itemize.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-22 04:42:51 +0000
committerMatthias Clasen <mclasen@redhat.com>2021-08-22 04:42:51 +0000
commit701d7435d7b0dff8d106107288f1992bb2ea9de4 (patch)
treeccf71374dfbbf961b86196910ea03167eaf9829b /tests/test-itemize.c
parentc13ec6590099dddb7145e1d4cddf5772f6d20d71 (diff)
parentb9d6e8943b2049e544bf4c08abe4e7573c6a1493 (diff)
downloadpango-701d7435d7b0dff8d106107288f1992bb2ea9de4.tar.gz
Merge branch 'matthiasc/for-main' into 'main'
break: Some code reorg See merge request GNOME/pango!427
Diffstat (limited to 'tests/test-itemize.c')
-rw-r--r--tests/test-itemize.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test-itemize.c b/tests/test-itemize.c
index 0a8515b8..926eb3ae 100644
--- a/tests/test-itemize.c
+++ b/tests/test-itemize.c
@@ -251,8 +251,6 @@ test_itemize (gconstpointer d)
return;
}
- context = pango_font_map_create_context (pango_cairo_font_map_get_default ());
-
found_cantarell = FALSE;
pango_context_list_families (context, &families, &n_families);
for (int i = 0; i < n_families; i++)
@@ -305,7 +303,6 @@ test_itemize (gconstpointer d)
g_free (diff);
g_string_free (dump, TRUE);
g_free (expected_file);
- g_object_unref (context);
}
int
@@ -318,6 +315,9 @@ main (int argc, char *argv[])
g_test_init (&argc, &argv, NULL);
+ context = pango_font_map_create_context (pango_cairo_font_map_get_default ());
+ pango_context_set_language (context, pango_language_from_string ("en-us"));
+
/* allow to easily generate expected output for new test cases */
if (argc > 1)
{