[gtk/gtk-4-4] testsuite: Call g_test_init in test binaries



commit 9ffb3e5ece94347a45fe4ad08131a2bf5adda23d
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Sep 14 16:10:39 2021 -0400

    testsuite: Call g_test_init in test binaries
    
    Without it, we mess out on G_DEBUG=fatal-warnings,
    so our ci does not alert us that we run a bunch of
    tests which spit out warnings.

 testsuite/gsk/compare-render.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/testsuite/gsk/compare-render.c b/testsuite/gsk/compare-render.c
index 5494c61d1e..a62252ab35 100644
--- a/testsuite/gsk/compare-render.c
+++ b/testsuite/gsk/compare-render.c
@@ -162,6 +162,8 @@ main (int argc, char **argv)
   GError *error = NULL;
   GOptionContext *context;
 
+  (g_test_init) (&argc, &argv, NULL);
+
   context = g_option_context_new ("NODE REF - run GSK node tests");
   g_option_context_add_main_entries (context, options, NULL);
   g_option_context_set_ignore_unknown_options (context, TRUE);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]