From: Matthias Clasen Date: Tue, 14 Sep 2021 20:10:39 +0000 (-0400) Subject: testsuite: Call g_test_init in test binaries X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2^2~35 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9ffb3e5ece94347a45fe4ad08131a2bf5adda23d;p=gtk4.git 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. --- 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);