diff options
author | Jonas Ådahl <jadahl@gmail.com> | 2017-01-12 13:52:52 +0800 |
---|---|---|
committer | Jonas Ådahl <jadahl@gmail.com> | 2017-01-25 16:28:56 +0800 |
commit | 28a8c714eadccf0b8dbc14efd5629c61d15bf227 (patch) | |
tree | 217d6fb3f838fd9d1b542d96d8e5fa817a1b619c /src | |
parent | c9f18bfef3a75902ce43b1a9d8b861fcbd8821af (diff) | |
download | mutter-28a8c714eadccf0b8dbc14efd5629c61d15bf227.tar.gz |
unit-tests: Pass argc/argv directly to g_test_init
Don't let a dummy option context consume the arguments; just let the
GLib test suite do it. It'll handle the basic command line arguments
and allow doing things such as specifying what test to run.
https://bugzilla.gnome.org/show_bug.cgi?id=777732
Diffstat (limited to 'src')
-rw-r--r-- | src/tests/unit-tests.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/tests/unit-tests.c b/src/tests/unit-tests.c index 7b7818c07..c70a7b085 100644 --- a/src/tests/unit-tests.c +++ b/src/tests/unit-tests.c @@ -207,20 +207,6 @@ init_tests (int argc, char **argv) int main (int argc, char *argv[]) { - GOptionContext *ctx; - GError *error = NULL; - - ctx = g_option_context_new (NULL); - - if (!g_option_context_parse (ctx, - &argc, &argv, &error)) - { - g_printerr ("%s", error->message); - return 1; - } - - g_option_context_free (ctx); - init_tests (argc, argv); meta_plugin_manager_load ("default"); |