From d21022f5625ae3c32fa70d3784a1386872666524 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Mon, 16 Jul 2018 16:58:43 +0200 Subject: [PATCH] tests/headless-start-test: Use common test init function Outsource the initialization of GTest to the same function used by the other tests. --- src/tests/headless-start-test.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/tests/headless-start-test.c b/src/tests/headless-start-test.c index eb50b1a33..18fecbb96 100644 --- a/src/tests/headless-start-test.c +++ b/src/tests/headless-start-test.c @@ -167,9 +167,6 @@ create_headless_test_setup (void) static void 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; initial_test_setup = create_headless_test_setup (); @@ -185,6 +182,7 @@ init_tests (int argc, char **argv) int main (int argc, char *argv[]) { + test_init (&argc, &argv); init_tests (argc, argv); meta_plugin_manager_load (test_get_plugin_name ());