summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.co.uk>2013-10-28 14:59:57 -0400
committerXavier Claessens <xavier.claessens@collabora.co.uk>2013-11-15 15:15:18 -0500
commit8313306834c7f294596820919a5ed52197a574be (patch)
tree7fa076dcdd5adedaafbd690a3b3c43edc9933078
parent1aa78d2cf4d9b44c15c5b627eef210943646e3fb (diff)
downloadtelepathy-glib-8313306834c7f294596820919a5ed52197a574be.tar.gz
Tests: use g_test_dbus_unset()
Also link to https://bugzilla.gnome.org/show_bug.cgi?id=697348 to explain why we still have to unset STARTER env variables.
-rw-r--r--tests/lib/util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/util.c b/tests/lib/util.c
index 3cf47e1ff..6dd6dd4fd 100644
--- a/tests/lib/util.c
+++ b/tests/lib/util.c
@@ -86,12 +86,12 @@ start_dbus_session (void)
g_type_init ();
- /* Make sure we won't be using user's bus. This unsets more than
- * g_test_dbus_unset() currently does (glib 2.36) */
- g_unsetenv ("DISPLAY");
+ g_test_dbus_unset ();
+
+ /* GLib 2.36 does not unset STARTER env variables but tp-glib are using them.
+ * See https://bugzilla.gnome.org/show_bug.cgi?id=697348 */
g_unsetenv ("DBUS_STARTER_ADDRESS");
g_unsetenv ("DBUS_STARTER_BUS_TYPE");
- g_unsetenv ("DBUS_SESSION_BUS_ADDRESS");
test_dbus = g_test_dbus_new (G_TEST_DBUS_NONE);
g_test_dbus_add_service_dir (test_dbus, g_getenv ("TP_TESTS_SERVICES_DIR"));