[mutter] tests/headless-start-test: Use common test init function
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] tests/headless-start-test: Use common test init function
- Date: Tue, 6 Nov 2018 18:07:45 +0000 (UTC)
commit d21022f5625ae3c32fa70d3784a1386872666524
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Mon Jul 16 16:58:43 2018 +0200
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 ());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]