[mutter] context/test: Let g_test_init() consume argc/argv first
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] context/test: Let g_test_init() consume argc/argv first
- Date: Sun, 19 Dec 2021 16:20:09 +0000 (UTC)
commit ed677f49ffe6977de3fa077cae5fdab651b0f1fb
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Tue Sep 7 10:29:45 2021 +0200
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>
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 7ba6c6b51a..863c20a98c 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]