We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5c4350 commit 168a3f6Copy full SHA for 168a3f6
src/libsystemd/sd-rtnl/test-rtnl.c
@@ -241,10 +241,12 @@ static void test_container(void) {
241
assert(sd_rtnl_message_read(m, &type, &data) >= 0);
242
assert(type == IFLA_VLAN_ID);
243
assert(*(uint16_t *)data == 100);
244
+ assert(sd_rtnl_message_read(m, &type, &data) == 0);
245
assert(sd_rtnl_message_exit_container(m) >= 0);
246
247
assert(type == IFLA_INFO_KIND);
248
assert(streq("kind", (char *)data));
249
250
251
assert(sd_rtnl_message_exit_container(m) == -EINVAL);
252
}
0 commit comments