test-doc-portal: rely on service activation to start D-Bus service

This is a more realistic integration test anyway.

Signed-off-by: Simon McVittie <smcv@debian.org>
This commit is contained in:
Simon McVittie
2016-05-17 09:01:57 +01:00
committed by Alexander Larsson
parent 4828632456
commit 70e70d2f6a

View File

@@ -334,7 +334,6 @@ global_setup (void)
gboolean inited;
g_autofree gchar *fusermount = NULL;
GError *error = NULL;
gint exit_status;
g_autofree gchar *services = NULL;
fusermount = g_find_program_in_path ("fusermount");
@@ -360,10 +359,6 @@ global_setup (void)
/* g_test_dbus_up unsets this, so re-set */
g_setenv ("XDG_RUNTIME_DIR", outdir, TRUE);
g_spawn_command_line_sync (DOC_PORTAL " -d", NULL, NULL, &exit_status, &error);
g_assert_no_error (error);
g_assert_cmpint (exit_status, ==, 0);
session_bus = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &error);
g_assert_no_error (error);