forked from Mirrors/flatpak-builder
test-doc-portal: Launch the portal manually
This allows us to get debug outputtingping/wmclass
parent
44f295c088
commit
18cc81d8a7
|
@ -8,7 +8,7 @@ testdb_LDADD = \
|
|||
$(NULL)
|
||||
testdb_SOURCES = tests/testdb.c
|
||||
|
||||
test_doc_portal_CFLAGS = $(BASE_CFLAGS) -DTEST_SERVICES=\""$(abs_top_builddir)/tests/services"\"
|
||||
test_doc_portal_CFLAGS = $(BASE_CFLAGS) -DTEST_SERVICES=\""$(abs_top_builddir)/tests/services"\" -DDOC_PORTAL=\""$(abs_top_builddir)/xdg-document-portal"\"
|
||||
test_doc_portal_LDADD = \
|
||||
$(BASE_LIBS) \
|
||||
$(OSTREE_LIBS) \
|
||||
|
|
|
@ -189,6 +189,7 @@ main (int argc, char **argv)
|
|||
int res;
|
||||
gboolean inited;
|
||||
GError *error = NULL;
|
||||
gint exit_status;
|
||||
|
||||
g_mkdtemp (outdir);
|
||||
g_print ("outdir: %s\n", outdir);
|
||||
|
@ -200,6 +201,10 @@ main (int argc, char **argv)
|
|||
g_test_dbus_add_service_dir (dbus, TEST_SERVICES);
|
||||
g_test_dbus_up (dbus);
|
||||
|
||||
g_spawn_command_line_sync (DOC_PORTAL " -d", NULL, NULL, &exit_status, &error);
|
||||
g_assert_cmpint (exit_status, ==, 0);
|
||||
g_assert_no_error (error);
|
||||
|
||||
session_bus = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &error);
|
||||
g_assert_no_error (error);
|
||||
|
||||
|
|
Loading…
Reference in New Issue