summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/test-bus-kernel.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-04-12 03:08:14 +0200
committerLennart Poettering <lennart@poettering.net>2013-04-12 03:08:50 +0200
commitf08838da225678269945868a71bbdc79de967e1d (patch)
treeb9a94e4a59c8a2c9556d784f73c9ba030d3bf24c /src/libsystemd-bus/test-bus-kernel.c
parent8c11aac1d739f5e60822f65f5179d8c4cc212732 (diff)
bus: implement basic name registration with kdbus
Diffstat (limited to 'src/libsystemd-bus/test-bus-kernel.c')
-rw-r--r--src/libsystemd-bus/test-bus-kernel.c9
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);