Merge branch 'test-dbus-exit-on-close' into 'main'

tests: Don’t exit gdbus-method-invocation test early on connection close

See merge request GNOME/glib!2589
This commit is contained in:
Simon McVittie 2022-04-05 14:23:53 +00:00
commit 28add9abfe

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",