summaryrefslogtreecommitdiff
path: root/src/libsystemd-rtnl/test-rtnl.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2013-10-27 22:45:14 +0100
committerTom Gundersen <teg@jklm.no>2013-10-27 22:45:14 +0100
commiteab97a4666453ab905932260d59ab4a0aed081e7 (patch)
tree52deb7609748fea60b7cbfbbbeae37b903279de2 /src/libsystemd-rtnl/test-rtnl.c
parent43b3a5ef61859f06cdbaf26765cab8e1adac4296 (diff)
rtnl: relax the tests a bit
It is a bit too optimisitc that this stuff is the same on different hosts.
Diffstat (limited to 'src/libsystemd-rtnl/test-rtnl.c')
-rw-r--r--src/libsystemd-rtnl/test-rtnl.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/libsystemd-rtnl/test-rtnl.c b/src/libsystemd-rtnl/test-rtnl.c
index bcfd816688..4079e9ec97 100644
--- a/src/libsystemd-rtnl/test-rtnl.c
+++ b/src/libsystemd-rtnl/test-rtnl.c
@@ -51,7 +51,6 @@ static void test_link_configure(sd_rtnl *rtnl, int ifindex) {
assert(type == IFLA_MTU);
assert(mtu == *(unsigned int *) data);
- /* let's assume that this test is always ran when the loopback device is up, so that it will fail */
assert(sd_rtnl_send_with_reply_and_block(rtnl, message, 2 * USEC_PER_SEC, NULL) == 0);
}
@@ -106,15 +105,15 @@ int main(void) {
assert(sd_rtnl_send_with_reply_and_block(rtnl, m, -1, &r) >= 0);
while (sd_rtnl_message_read(r, &type, &data)) {
switch (type) {
- case IFLA_MTU:
- assert(*(unsigned int *) data == 65536);
- break;;
+// case IFLA_MTU:
+// assert(*(unsigned int *) data == 65536);
+// break;;
+// case IFLA_QDISC:
+// assert(streq((char *) data, "noqueue"));
+// break;;
case IFLA_IFNAME:
assert(streq((char *) data, "lo"));
break;;
- case IFLA_QDISC:
- assert(streq((char *) data, "noqueue"));
- break;;
}
}