[pango] test-break: Improve output
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango] test-break: Improve output
- Date: Mon, 10 Aug 2020 02:08:54 +0000 (UTC)
commit 97778b40daedac08f67f9e8ca9572c241e26ef42
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Aug 9 21:35:24 2020 -0400
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.
tests/test-break.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/test-break.c b/tests/test-break.c
index 6f4019e1c..fca5677bf 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]