Commit 97778b40 authored by Matthias Clasen's avatar Matthias Clasen

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.
parent c8be5aec
...@@ -309,8 +309,6 @@ main (int argc, char *argv[]) ...@@ -309,8 +309,6 @@ main (int argc, char *argv[])
const gchar *name; const gchar *name;
gchar *path; gchar *path;
g_test_init (&argc, &argv, NULL);
setlocale (LC_ALL, ""); setlocale (LC_ALL, "");
context = pango_font_map_create_context (pango_cairo_font_map_get_default ()); context = pango_font_map_create_context (pango_cairo_font_map_get_default ());
...@@ -322,11 +320,13 @@ main (int argc, char *argv[]) ...@@ -322,11 +320,13 @@ main (int argc, char *argv[])
string = g_string_sized_new (0); string = g_string_sized_new (0);
test_file (argv[1], string); test_file (argv[1], string);
g_test_message ("%s", string->str); g_print ("%s", string->str);
return 0; return 0;
} }
g_test_init (&argc, &argv, NULL);
path = g_test_build_filename (G_TEST_DIST, "breaks", NULL); path = g_test_build_filename (G_TEST_DIST, "breaks", NULL);
dir = g_dir_open (path, 0, &error); dir = g_dir_open (path, 0, &error);
g_free (path); g_free (path);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment