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.
This commit is contained in:
Matthias Clasen 2021-09-14 16:10:39 -04:00
parent 2e63b53b1e
commit ffab67ac70

View 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);