summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/test-bus-gvariant.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-23 23:48:30 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-23 23:48:30 +0100
commit8f19720dd2782684a0c73d1deb5e1ac3e1fb086d (patch)
treee01822721829b03d0a8915580b016f6fadf77595 /src/libsystemd-bus/test-bus-gvariant.c
parent85feb8e4d9b0ef65c338e1a1a16665d0cb8d544a (diff)
bus: fix assert when serializing fixed size struct to gvariant
Diffstat (limited to 'src/libsystemd-bus/test-bus-gvariant.c')
-rw-r--r--src/libsystemd-bus/test-bus-gvariant.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libsystemd-bus/test-bus-gvariant.c b/src/libsystemd-bus/test-bus-gvariant.c
index de9f00124a..cb07c96273 100644
--- a/src/libsystemd-bus/test-bus-gvariant.c
+++ b/src/libsystemd-bus/test-bus-gvariant.c
@@ -141,9 +141,10 @@ static void test_marshal(void) {
assert_se(sd_bus_message_new_method_call(bus, "a.service.name", "/an/object/path/which/is/really/really/long/so/that/we/hit/the/eight/bit/boundary/by/quite/some/margin/to/test/this/stuff/that/it/really/works", "an.interface.name", "AMethodName", &m) >= 0);
assert_se(sd_bus_message_append(m,
- "a(usv)", 2,
+ "a(usv)", 3,
4711, "first-string-parameter", "(st)", "X", (uint64_t) 1111,
- 4712, "second-string-parameter", "(a(si))", 2, "Y", 5, "Z", 6) >= 0);
+ 4712, "second-string-parameter", "(a(si))", 2, "Y", 5, "Z", 6,
+ 4713, "third-string-parameter", "(uu)", 1, 2) >= 0);
assert_se(bus_message_seal(m, 4711, 0) >= 0);