diff options
author | Matthias Clasen <mclasen@redhat.com> | 2013-05-31 18:02:03 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2013-05-31 18:03:53 -0400 |
commit | e17b595e3bacfb7333bab6fcd1c62d05e7228936 (patch) | |
tree | 53137441a64f82e316138ab44bc847cecb0d0c76 /tests/testiter.c | |
parent | 6c16dfe8ad012a2551d0270a0325574e9ce3cef7 (diff) | |
download | pango-e17b595e3bacfb7333bab6fcd1c62d05e7228936.tar.gz |
Make tests installable
This ensures that tests are run continuously on ostree.gnome.org.
Diffstat (limited to 'tests/testiter.c')
-rw-r--r-- | tests/testiter.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/tests/testiter.c b/tests/testiter.c index 1870ce6e..773e4bc0 100644 --- a/tests/testiter.c +++ b/tests/testiter.c @@ -207,16 +207,14 @@ iter_cluster_test (PangoLayout *layout) pango_layout_iter_free (iter); } -int -main (int argc, char *argv[]) +static void +test_layout_iter (void) { const char **ptext; PangoFontMap *fontmap; PangoContext *context; PangoLayout *layout; - g_setenv ("PANGO_RC_FILE", "./pangorc", TRUE); - fontmap = pango_cairo_font_map_get_default (); context = pango_font_map_create_context (fontmap); @@ -236,5 +234,14 @@ main (int argc, char *argv[]) } g_object_unref (layout); - return 0; +} + +int +main (int argc, char *argv[]) +{ + g_test_init (&argc, &argv, NULL); + + g_test_add_func ("/layout/iter", test_layout_iter); + + return g_test_run (); } |