1
0
Fork 0

context/test: Let g_test_init() consume argc/argv first

This allows passing e.g. -p /path/to/test to test executables.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1993>
This commit is contained in:
Jonas Ådahl 2021-09-07 10:29:45 +02:00 committed by Marge Bot
parent d111c47c88
commit ed677f49ff

View file

@ -72,10 +72,11 @@ meta_context_test_configure (MetaContext *context,
META_CONTEXT_CLASS (meta_context_test_parent_class);
const char *plugin_name;
g_test_init (argc, argv, NULL);
if (!context_class->configure (context, argc, argv, error))
return FALSE;
g_test_init (argc, argv, NULL);
g_test_bug_base ("https://gitlab.gnome.org/GNOME/mutter/issues/");
if (priv->flags & META_CONTEXT_TEST_FLAG_TEST_CLIENT)