[glib/wip/smcv/gdbus-tests: 2/4] gdbus-peer test: Stop GDBusServer before tearing down temporary directory



commit 7c2e4095f44c2580eb7113beb86e16d086205669
Author: Simon McVittie <smcv collabora com>
Date:   Tue Oct 29 16:14:16 2019 +0000

    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>

 gio/tests/gdbus-peer.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gio/tests/gdbus-peer.c b/gio/tests/gdbus-peer.c
index c51166ae7..bb6304151 100644
--- a/gio/tests/gdbus-peer.c
+++ b/gio/tests/gdbus-peer.c
@@ -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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]