summaryrefslogtreecommitdiff
path: root/tests/test-break.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-08-09 21:35:24 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-08-09 21:35:24 -0400
commit97778b40daedac08f67f9e8ca9572c241e26ef42 (patch)
treeadd697ef3e98ccc8c5c7364660279eb2e7673d98 /tests/test-break.c
parentc8be5aecc2d3de5dd633ed491c4ccf5e8c96297c (diff)
downloadpango-97778b40daedac08f67f9e8ca9572c241e26ef42.tar.gz
test-break: Improve output
When we are generating expected output, don't init the tests, so we can avoid the random seed and # in the output.
Diffstat (limited to 'tests/test-break.c')
-rw-r--r--tests/test-break.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test-break.c b/tests/test-break.c
index 6f4019e1..fca5677b 100644
--- a/tests/test-break.c
+++ b/tests/test-break.c
@@ -309,8 +309,6 @@ main (int argc, char *argv[])
const gchar *name;
gchar *path;
- g_test_init (&argc, &argv, NULL);
-
setlocale (LC_ALL, "");
context = pango_font_map_create_context (pango_cairo_font_map_get_default ());
@@ -322,11 +320,13 @@ main (int argc, char *argv[])
string = g_string_sized_new (0);
test_file (argv[1], string);
- g_test_message ("%s", string->str);
+ g_print ("%s", string->str);
return 0;
}
+ g_test_init (&argc, &argv, NULL);
+
path = g_test_build_filename (G_TEST_DIST, "breaks", NULL);
dir = g_dir_open (path, 0, &error);
g_free (path);