From: Michael Biebl Date: Tue, 19 Sep 2017 12:17:57 +0000 (+0200) Subject: tests: change dbus tests to use user bus (#6845) X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=e91c2a4fe4ede894d1cf54f9dbd9ba7a630d910c;p=elogind.git tests: change dbus tests to use user bus (#6845) This makes it possible to run more dbus tests in a build environment/chroot where no system bus is available. To run the dbus test one then can use dbus-run-session. --- diff --git a/src/libelogind/sd-bus/test-bus-match.c b/src/libelogind/sd-bus/test-bus-match.c index 29c4529f9..8fd9d03dd 100644 --- a/src/libelogind/sd-bus/test-bus-match.c +++ b/src/libelogind/sd-bus/test-bus-match.c @@ -94,7 +94,7 @@ int main(int argc, char *argv[]) { sd_bus_slot slots[19]; int r; - r = sd_bus_open_system(&bus); + r = sd_bus_open_user(&bus); if (r < 0) return EXIT_TEST_SKIP;