tests: clear out various D-Bus-related variables
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 5 Apr 2013 13:06:09 +0000 (14:06 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 5 Apr 2013 13:06:09 +0000 (14:06 +0100)
commit13220546e01844d7b879dd11eb82a0254ab0108d
tree00281922fcd15fc14b742bd5f808ed5130437f87
parentbfab3ee28c15a4e3ed6d7a87a113b472afebd495
tests: clear out various D-Bus-related variables

The actual terminal in gnome-terminal 3.8 is an activatable service,
so it has DBUS_STARTER_ADDRESS in its environment. telepathy-glib prefers
DBUS_STARTER_ADDRESS over DBUS_SESSION_BUS_ADDRESS, but GTestDBus
doesn't clear or set the former, only the latter; so we end up trying to
use the real bus when run under a recent gnome-terminal.

See also <https://bugs.freedesktop.org/show_bug.cgi?id=63119>.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=697261
Reviewed-by: Philip Withnall <philip@tecnocode.co.uk>
[added FIXME comment about #697348]
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
tests/lib/test-case.vala
tests/tools/dbus-session.sh