testsuite: Call g_test_init in test binaries
authorMatthias Clasen <mclasen@redhat.com>
Tue, 14 Sep 2021 20:10:39 +0000 (16:10 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 31 Oct 2021 21:52:04 +0000 (17:52 -0400)
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

index 5494c61d1e48a5f90e2c702934fd5b0977a84806..a62252ab357d595e928493b7eb7ea1f4065326e1 100644 (file)
@@ -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);