chiark / gitweb /
tests: change dbus tests to use user bus (#6845)
authorMichael Biebl <mbiebl@gmail.com>
Tue, 19 Sep 2017 12:17:57 +0000 (14:17 +0200)
committerSven Eden <yamakuzure@gmx.net>
Tue, 19 Sep 2017 12:17:57 +0000 (14:17 +0200)
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.

src/libelogind/sd-bus/test-bus-match.c

index 29c4529f95e0766a142e6f3441ee2510c71e18ee..8fd9d03ddf90b11c69e7f74d0ba9d6d632cbfc2a 100644 (file)
@@ -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;