mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-14 19:55:12 +01:00
tests: Fix running mapping test with -m argument
`g_test_init()` needs to be called before custom command line handling so it has a chance to strip out the arguments it handles. Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
parent
615060d872
commit
82a6c54135
@ -299,6 +299,7 @@ main (int argc,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
g_test_init (&argc, &argv, NULL);
|
||||||
local_argv = argv;
|
local_argv = argv;
|
||||||
|
|
||||||
if (argc > 1)
|
if (argc > 1)
|
||||||
@ -307,8 +308,6 @@ main (int argc,
|
|||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
g_test_init (&argc, &argv, NULL);
|
|
||||||
|
|
||||||
g_test_add_func ("/mapping/flags", test_mapping_flags);
|
g_test_add_func ("/mapping/flags", test_mapping_flags);
|
||||||
g_test_add_func ("/mapping/private", test_private);
|
g_test_add_func ("/mapping/private", test_private);
|
||||||
g_test_add_func ("/mapping/private-child", test_child_private);
|
g_test_add_func ("/mapping/private-child", test_child_private);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user