From 4e3431bc39cbd45661f7887229afa50e5aec60dc Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 12 Apr 2013 02:24:28 +0200 Subject: bus: be nice to people who don't have kdbus in their kernels --- src/libsystemd-bus/test-bus-kernel.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libsystemd-bus/test-bus-kernel.c b/src/libsystemd-bus/test-bus-kernel.c index 9b2ee7d5a7..d0f8f94db4 100644 --- a/src/libsystemd-bus/test-bus-kernel.c +++ b/src/libsystemd-bus/test-bus-kernel.c @@ -35,6 +35,9 @@ int main(int argc, char *argv[]) { int r; bus_ref = bus_kernel_create("deine-mutter", &bus_name); + if (bus_ref == -ENOENT) + return EXIT_TEST_SKIP; + assert_se(bus_ref >= 0); address = strappend("kernel:path=", bus_name); -- cgit v1.2.3-54-g00ecf