bus: be nice to people who don't have kdbus in their kernels

This commit is contained in:
Lennart Poettering 2013-04-12 02:24:28 +02:00
parent beca33eef4
commit 4e3431bc39

View file

@ -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);