summaryrefslogtreecommitdiff
path: root/tests/testiter.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testiter.c')
-rw-r--r--tests/testiter.c17
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 ();
}