mirror of
https://github.com/systemd/systemd.git
synced 2024-10-28 11:55:44 +03:00
sd-rtnl: extend tests a bit
This commit is contained in:
parent
e5c4350b0d
commit
168a3f602f
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user