mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
tests/headless-start-test: Use common test init function
Outsource the initialization of GTest to the same function used by the other tests.
This commit is contained in:
parent
2af229fe98
commit
d21022f562
@ -167,9 +167,6 @@ create_headless_test_setup (void)
|
|||||||
static void
|
static void
|
||||||
init_tests (int argc, char **argv)
|
init_tests (int argc, char **argv)
|
||||||
{
|
{
|
||||||
g_test_init (&argc, &argv, NULL);
|
|
||||||
g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=");
|
|
||||||
|
|
||||||
MetaMonitorTestSetup *initial_test_setup;
|
MetaMonitorTestSetup *initial_test_setup;
|
||||||
|
|
||||||
initial_test_setup = create_headless_test_setup ();
|
initial_test_setup = create_headless_test_setup ();
|
||||||
@ -185,6 +182,7 @@ init_tests (int argc, char **argv)
|
|||||||
int
|
int
|
||||||
main (int argc, char *argv[])
|
main (int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
test_init (&argc, &argv);
|
||||||
init_tests (argc, argv);
|
init_tests (argc, argv);
|
||||||
|
|
||||||
meta_plugin_manager_load (test_get_plugin_name ());
|
meta_plugin_manager_load (test_get_plugin_name ());
|
||||||
|
Loading…
Reference in New Issue
Block a user