mirror of
https://github.com/flatpak/flatpak.git
synced 2026-01-26 14:13:26 +00:00
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:
parent
9884b056fd
commit
9f06ec5775
@ -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,
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user