]> git.ipfire.org Git - thirdparty/dbus.git/commit
config-parser: Don't use dbus_setenv() to test service directories
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 17 Feb 2017 17:15:34 +0000 (17:15 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 20 Feb 2017 18:16:43 +0000 (18:16 +0000)
commit024bcd407b8b1863bbd9783c29cd526cccc351f9
treeeb4bc5658b67025e5907e8d0820eb416ade4daf9
parent5476b8fad009dc8587184ea61f27d7b48eb6a036
config-parser: Don't use dbus_setenv() to test service directories

We can rely on the Autotools build system to pass in some safe values
for XDG_DATA_HOME and XDG_DATA_DIRS that match DBUS_TEST_BUILDDIR.

This test will now be skipped when running test-bus manually,
or under the CMake build system. Under CMake it could be reinstated
by setting the right environment variables.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=99825
Reviewed-by: Philip Withnall <withnall@endlessm.com>
[smcv: add missing newline as requested]
[smcv: align DBUS_TEST_BUILDDIR with G_TEST_BUILDDIR]
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
bus/config-parser.c
test/Makefile.am