[glib] Explicitly unset the session bus address for the peer tests
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Explicitly unset the session bus address for the peer tests
- Date: Sun, 24 Jul 2011 02:01:52 +0000 (UTC)
commit 4cb33b158b43b54108b20cb9c3f1143acbef9124
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Jul 23 21:59:49 2011 -0400
Explicitly unset the session bus address for the peer tests
Otherwise, we may run into trouble as opening a peer-to-peer
connection uses a socket client, which uses a proxy resolver
which may end up using gsettings, whose dconf backend may end
up using the session bus to talk to dconfd...
gio/tests/gdbus-peer.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gio/tests/gdbus-peer.c b/gio/tests/gdbus-peer.c
index c71a526..af2feca 100644
--- a/gio/tests/gdbus-peer.c
+++ b/gio/tests/gdbus-peer.c
@@ -1538,6 +1538,8 @@ main (int argc,
g_thread_init (NULL);
g_test_init (&argc, &argv, NULL);
+ g_unsetenv ("DBUS_SESSION_BUS_ADDRESS");
+
introspection_data = g_dbus_node_info_new_for_xml (test_interface_introspection_xml, NULL);
g_assert (introspection_data != NULL);
test_interface_introspection_data = introspection_data->interfaces[0];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]