chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e5c4350
)
sd-rtnl: extend tests a bit
author
Tom Gundersen
<teg@jklm.no>
Sat, 25 Jan 2014 00:22:54 +0000
(
01:22
+0100)
committer
Tom Gundersen
<teg@jklm.no>
Sat, 25 Jan 2014 00:22:54 +0000
(
01:22
+0100)
src/libsystemd/sd-rtnl/test-rtnl.c
patch
|
blob
|
history
diff --git
a/src/libsystemd/sd-rtnl/test-rtnl.c
b/src/libsystemd/sd-rtnl/test-rtnl.c
index a173b0fc615e1b7260b1d9432481c0ce50d55a33..ec6b29438c0f10e64996b965fed15411ea57de75 100644
(file)
--- 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(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_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);
}
assert(sd_rtnl_message_exit_container(m) >= 0);
assert(sd_rtnl_message_exit_container(m) == -EINVAL);
}