test/dbus-daemon: Unset DBUS_SESSION_BUS_ADDRESS
authorSimon McVittie <smcv@collabora.com>
Wed, 5 Jul 2017 14:30:05 +0000 (15:30 +0100)
committerSimon McVittie <smcv@collabora.com>
Fri, 7 Jul 2017 09:54:01 +0000 (10:54 +0100)
commit8e48532d242c8f7529960b2bbee85e11179cfb56
treefa2463ed0d74b76ed02d59cd590a0b76bc3f1a58
parent68304a47c04898987cbc53a3b8729e2511aad6f0
test/dbus-daemon: Unset DBUS_SESSION_BUS_ADDRESS

When we intend to exercise the default behaviour in the absence of
DBUS_SESSION_BUS_ADDRESS (but with an XDG_RUNTIME_DIR present), it would
help if we unset DBUS_SESSION_BUS_ADDRESS. Otherwise we'll just connect
to the real session bus, if there is one.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=101698
test/dbus-daemon.c