summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/test-bus-gvariant.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-10 03:31:52 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-10 03:31:52 +0100
commit5877dc5a7fb6f0033b2a3992cc08f335a3c51d63 (patch)
treea5a554692b47afd13b529e35d3087f488e131c94 /src/libsystemd-bus/test-bus-gvariant.c
parent5f7e8903b275f14d0f41f0542871d09deccb1741 (diff)
test: add gvariant test for empty messages
Diffstat (limited to 'src/libsystemd-bus/test-bus-gvariant.c')
-rw-r--r--src/libsystemd-bus/test-bus-gvariant.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libsystemd-bus/test-bus-gvariant.c b/src/libsystemd-bus/test-bus-gvariant.c
index 57015ae1b8..7ceeb81b9d 100644
--- a/src/libsystemd-bus/test-bus-gvariant.c
+++ b/src/libsystemd-bus/test-bus-gvariant.c
@@ -178,6 +178,15 @@ static void test_marshal(void) {
blob = NULL;
assert_se(bus_message_dump(n, NULL, true) >= 0);
+
+ m = sd_bus_message_unref(m);
+
+ assert_se(sd_bus_message_new_method_call(bus, "a.x", "/a/x", "a.x", "Ax", &m) >= 0);
+
+ assert_se(sd_bus_message_append(m, "as", 0) >= 0);
+
+ assert_se(bus_message_seal(m, 4712) >= 0);
+ assert_se(bus_message_dump(m, NULL, true) >= 0);
}
int main(int argc, char *argv[]) {