Skip to content

Commit 168a3f6

Browse files
committed
sd-rtnl: extend tests a bit
1 parent e5c4350 commit 168a3f6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libsystemd/sd-rtnl/test-rtnl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,12 @@ static void test_container(void) {
241241
assert(sd_rtnl_message_read(m, &type, &data) >= 0);
242242
assert(type == IFLA_VLAN_ID);
243243
assert(*(uint16_t *)data == 100);
244+
assert(sd_rtnl_message_read(m, &type, &data) == 0);
244245
assert(sd_rtnl_message_exit_container(m) >= 0);
245246
assert(sd_rtnl_message_read(m, &type, &data) >= 0);
246247
assert(type == IFLA_INFO_KIND);
247248
assert(streq("kind", (char *)data));
249+
assert(sd_rtnl_message_read(m, &type, &data) == 0);
248250
assert(sd_rtnl_message_exit_container(m) >= 0);
249251
assert(sd_rtnl_message_exit_container(m) == -EINVAL);
250252
}

0 commit comments

Comments
 (0)