summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-04-12 02:24:28 +0200
committerLennart Poettering <lennart@poettering.net>2013-04-12 02:24:28 +0200
commit4e3431bc39cbd45661f7887229afa50e5aec60dc (patch)
tree6becaccd51b6524a022e8785c3f7b5aa56178e28 /src
parentbeca33eef46f5050969b0ec58c8477a9f729840a (diff)
bus: be nice to people who don't have kdbus in their kernels
Diffstat (limited to 'src')
-rw-r--r--src/libsystemd-bus/test-bus-kernel.c3
1 files changed, 3 insertions, 0 deletions
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);