mirror of
https://github.com/brl/mutter.git
synced 2024-11-10 07:56:14 -05:00
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
This commit is contained in:
parent
c9f18bfef3
commit
28a8c714ea
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user