gio: do not cache document portal D-Bus proxy

By removing the cached global proxy in gdocumentportal.c, we can
re-enable the checks for proper shutdown of the session bus connection
in the dbus-appinfo.c test.
This commit is contained in:
James Henstridge
2019-12-17 17:33:04 +08:00
parent 926ff8c6a7
commit e24db62363
2 changed files with 41 additions and 56 deletions

View File

@@ -361,18 +361,10 @@ test_flatpak_doc_export (void)
int
main (int argc, char **argv)
{
int ret;
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/appinfo/dbusappinfo", test_dbus_appinfo);
g_test_add_func ("/appinfo/flatpak-doc-export", test_flatpak_doc_export);
session_bus_up ();
ret = g_test_run ();
/* gdocumentportal.c holds a reference to the session bus
* connection, which prevents session_bus_down from completing
* successfully. */
session_bus_stop ();
return ret;
return session_bus_run ();
}