mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02:00
tests: Take explicit connection and context when ensuring testserver up
This introduces no functional changes, but makes the code a little more explicit about which connection and main context it’s operating on. Signed-off-by: Philip Withnall <withnall@endlessm.com> Helps: #1515
This commit is contained in:
@@ -603,14 +603,14 @@ main (int argc,
|
||||
g_assert_true (g_spawn_command_line_async (path, NULL));
|
||||
g_free (path);
|
||||
|
||||
ensure_gdbus_testserver_up ();
|
||||
|
||||
/* Create the connection in the main thread */
|
||||
error = NULL;
|
||||
c = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &error);
|
||||
g_assert_no_error (error);
|
||||
g_assert_nonnull (c);
|
||||
|
||||
ensure_gdbus_testserver_up (c, NULL);
|
||||
|
||||
g_test_add_func ("/gdbus/delivery-in-thread", test_delivery_in_thread);
|
||||
g_test_add_func ("/gdbus/method-calls-in-thread", test_method_calls_in_thread);
|
||||
g_test_add_func ("/gdbus/threaded-singleton", test_threaded_singleton);
|
||||
|
Reference in New Issue
Block a user