chiark / gitweb /
kdbus: use a valid service name for testing
authorLennart Poettering <lennart@poettering.net>
Fri, 12 Apr 2013 19:45:14 +0000 (21:45 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 12 Apr 2013 19:45:14 +0000 (21:45 +0200)
src/libsystemd-bus/test-bus-kernel.c

index 19fae1d..8266272 100644 (file)
@@ -88,10 +88,10 @@ int main(int argc, char *argv[]) {
         sd_bus_message_unref(m);
         m = NULL;
 
-        r = sd_bus_request_name(a, "net.0pointer.foobar", 0);
+        r = sd_bus_request_name(a, "net.x0pointer.foobar", 0);
         assert_se(r >= 0);
 
-        r = sd_bus_message_new_method_call(b, "net.0pointer.foobar", "/a/path", "an.inter.face", "AMethod", &m);
+        r = sd_bus_message_new_method_call(b, "net.x0pointer.foobar", "/a/path", "an.inter.face", "AMethod", &m);
         assert_se(r >= 0);
 
         r = sd_bus_send(b, m, NULL);
@@ -108,10 +108,10 @@ int main(int argc, char *argv[]) {
                 assert_se(sd_bus_message_rewind(m, true) >= 0);
         }
 
-        r = sd_bus_release_name(a, "net.0pointer.foobar");
+        r = sd_bus_release_name(a, "net.x0pointer.foobar");
         assert_se(r >= 0);
 
-        r = sd_bus_release_name(a, "net.0pointer.foobar");
+        r = sd_bus_release_name(a, "net.x0pointer.foobar");
         assert_se(r == -ENXIO);
 
         sd_bus_unref(a);