From ed677f49ffe6977de3fa077cae5fdab651b0f1fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Tue, 7 Sep 2021 10:29:45 +0200 Subject: [PATCH] context/test: Let g_test_init() consume argc/argv first This allows passing e.g. -p /path/to/test to test executables. Part-of: --- src/tests/meta-context-test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tests/meta-context-test.c b/src/tests/meta-context-test.c index 7ba6c6b51..863c20a98 100644 --- a/src/tests/meta-context-test.c +++ b/src/tests/meta-context-test.c @@ -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)