summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-01-25 01:22:54 +0100
committerTom Gundersen <teg@jklm.no>2014-01-25 01:22:54 +0100
commit168a3f602fa2250dc0d0aab140ab91945d5f6efa (patch)
tree503e93eda8547ee933f82aa44b5b44742deefc5f
parente5c4350b0d91551041795eb3c4fd4f22b2604ee2 (diff)
sd-rtnl: extend tests a bit
-rw-r--r--src/libsystemd/sd-rtnl/test-rtnl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsystemd/sd-rtnl/test-rtnl.c b/src/libsystemd/sd-rtnl/test-rtnl.c
index a173b0fc61..ec6b29438c 100644
--- a/src/libsystemd/sd-rtnl/test-rtnl.c
+++ b/src/libsystemd/sd-rtnl/test-rtnl.c
@@ -241,10 +241,12 @@ static void test_container(void) {
assert(sd_rtnl_message_read(m, &type, &data) >= 0);
assert(type == IFLA_VLAN_ID);
assert(*(uint16_t *)data == 100);
+ assert(sd_rtnl_message_read(m, &type, &data) == 0);
assert(sd_rtnl_message_exit_container(m) >= 0);
assert(sd_rtnl_message_read(m, &type, &data) >= 0);
assert(type == IFLA_INFO_KIND);
assert(streq("kind", (char *)data));
+ assert(sd_rtnl_message_read(m, &type, &data) == 0);
assert(sd_rtnl_message_exit_container(m) >= 0);
assert(sd_rtnl_message_exit_container(m) == -EINVAL);
}