Merge branch 'backport-2589-test-dbus-exit-on-close-glib-2-72' into 'glib-2-72'

Backport !2589 “tests: Don’t exit gdbus-method-invocation test early on connection close” to glib-2-72

See merge request GNOME/glib!2590
This commit is contained in:
Simon McVittie 2022-04-05 16:23:35 +00:00
commit 817fc993c7

View File

@ -300,6 +300,10 @@ test_method_invocation_return (void)
g_assert_no_error (local_error);
g_assert_nonnull (connection);
/* Dont exit the test when the server closes the connection in
* CloseBeforeReturning(). */
g_dbus_connection_set_exit_on_close (connection, FALSE);
/* Register an object which we can call methods on. */
registration_id = g_dbus_connection_register_object (connection,
"/foo",