diff options
Diffstat (limited to 'src/libsystemd-bus/test-bus-kernel.c')
-rw-r--r-- | src/libsystemd-bus/test-bus-kernel.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libsystemd-bus/test-bus-kernel.c b/src/libsystemd-bus/test-bus-kernel.c index d0f8f94db4..f519bf61cb 100644 --- a/src/libsystemd-bus/test-bus-kernel.c +++ b/src/libsystemd-bus/test-bus-kernel.c @@ -85,6 +85,15 @@ int main(int argc, char *argv[]) { assert_se(r >= 0); assert_se(streq(the_string, "I am a string")); + r = sd_bus_request_name(a, "net.0pointer.foobar", 0); + assert_se(r >= 0); + + r = sd_bus_release_name(a, "net.0pointer.foobar"); + assert_se(r >= 0); + + r = sd_bus_release_name(a, "net.0pointer.foobar"); + assert_se(r < 0); + sd_bus_unref(a); sd_bus_unref(b); |