]> git.ipfire.org Git - thirdparty/dbus.git/commit
tests: Skip system bus test if we are root but messagebus does not exist
authorSimon McVittie <smcv@collabora.com>
Tue, 2 Jul 2019 19:42:54 +0000 (20:42 +0100)
committerSimon McVittie <smcv@collabora.com>
Wed, 3 Jul 2019 10:11:23 +0000 (11:11 +0100)
commit505bbfe4bd2ced20d8637356b431fefded71b2c3
treed3bd2133f0435de584649236a24befa26ea57532
parent0b8878133f806351b213b80097b2bd6de5677f2c
tests: Skip system bus test if we are root but messagebus does not exist

Some CI systems do the build as root in a disposable container, and
run tests without ever having installed dbus. This means we can't
expect to be able to drop privileges from root to the DBUS_USER (usually
named messagebus or dbus) unless we have checked that the
DBUS_USER exists.

Signed-off-by: Simon McVittie <smcv@collabora.com>
test/dbus-daemon.c
test/test-utils-glib.c
test/test-utils-glib.h