mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
gdbus-peer test: Stop GDBusServer before tearing down temporary directory
Otherwise, since GNOME/glib!1193, the listening socket won't be deleted,
and if we are not using abstract sockets (for example on *BSD), g_rmdir
will fail with ENOTEMPTY.
Fixes: 8e32b8e8
"gdbusserver: Delete socket and nonce file when stopping server"
Resolves: GNOME/glib#1921
Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
parent
e1b7b1ac16
commit
7c2e4095f4
@ -1259,6 +1259,7 @@ dmp_thread_func (gpointer user_data)
|
||||
data->loop = g_main_loop_new (data->context, FALSE);
|
||||
g_main_loop_run (data->loop);
|
||||
|
||||
g_dbus_server_stop (data->server);
|
||||
g_main_context_pop_thread_default (data->context);
|
||||
|
||||
g_free (guid);
|
||||
|
Loading…
Reference in New Issue
Block a user