Fix coverage for system helper and portal

These services were not generating coverage data
because they always get ended by GDBus raising
SIGTERM when the bus goes away. Prevent this by
telling GDBus not to do that, and let the services
exit regularly, on their own terms.

This makes the system helper code show up in the
coverage statistics.

Closes: #2530
Approved by: matthiasclasen
This commit is contained in:
Matthias Clasen 2019-01-01 16:54:12 -05:00 committed by Atomic Bot
parent 9884b056fd
commit 9f06ec5775
2 changed files with 4 additions and 0 deletions

View File

@ -749,6 +749,8 @@ on_bus_acquired (GDBusConnection *connection,
g_debug ("Bus acquired, creating skeleton");
g_dbus_connection_set_exit_on_close (connection, FALSE);
portal = portal_flatpak_skeleton_new ();
g_dbus_connection_signal_subscribe (connection,

View File

@ -1505,6 +1505,8 @@ on_bus_acquired (GDBusConnection *connection,
g_debug ("Bus acquired, creating skeleton");
g_dbus_connection_set_exit_on_close (connection, FALSE);
helper = flatpak_system_helper_skeleton_new ();
flatpak_system_helper_set_version (FLATPAK_SYSTEM_HELPER (helper), 2);