summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/test-bus-kernel.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-04-12 01:45:18 +0200
committerLennart Poettering <lennart@poettering.net>2013-04-12 01:45:18 +0200
commitf9be01f3b4784affa269694a4f5cdcb87f06f2f7 (patch)
tree7518d4e42dba9dba5bb6663a3a4bb7a1c17cd824 /src/libsystemd-bus/test-bus-kernel.c
parente9a967f9a0e9b2bf705a776c34635e6d1df73f1b (diff)
bus: parse uid/gid/pid/tid meta data from kdbus messages
Diffstat (limited to 'src/libsystemd-bus/test-bus-kernel.c')
-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 4c599788fe..9b2ee7d5a7 100644
--- a/src/libsystemd-bus/test-bus-kernel.c
+++ b/src/libsystemd-bus/test-bus-kernel.c
@@ -75,6 +75,9 @@ int main(int argc, char *argv[]) {
assert_se(r > 0);
assert_se(m);
+ bus_message_dump(m);
+ assert_se(sd_bus_message_rewind(m, true) >= 0);
+
r = sd_bus_message_read(m, "s", &the_string);
assert_se(r >= 0);
assert_se(streq(the_string, "I am a string"));