summaryrefslogtreecommitdiff
path: root/src/libsystemd
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-02-10 13:28:39 +0100
committerTom Gundersen <teg@jklm.no>2014-02-10 14:53:19 +0100
commit11fc2e833e454e65ff1123a091ab1a877a063e15 (patch)
tree7ee262da21ce92b1685fcb94039479eaed613a0a /src/libsystemd
parenteedee64522f19a4976957fff12ee0d9c1870a7df (diff)
sd-rtnl: test - improve test of MTU a bit
We are more likely to catch errors if we don't use '0' as test value.
Diffstat (limited to 'src/libsystemd')
-rw-r--r--src/libsystemd/sd-rtnl/test-rtnl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd/sd-rtnl/test-rtnl.c b/src/libsystemd/sd-rtnl/test-rtnl.c
index dc2e36c503..24015147cd 100644
--- a/src/libsystemd/sd-rtnl/test-rtnl.c
+++ b/src/libsystemd/sd-rtnl/test-rtnl.c
@@ -61,7 +61,7 @@ static void test_link_configure(sd_rtnl *rtnl, int ifindex) {
static void test_link_get(sd_rtnl *rtnl, int ifindex) {
sd_rtnl_message *m;
sd_rtnl_message *r;
- unsigned int mtu = 0;
+ unsigned int mtu = 1500;
unsigned int *mtu_reply;
void *data;
uint16_t type;
@@ -96,7 +96,7 @@ static void test_link_get(sd_rtnl *rtnl, int ifindex) {
/* u32 read back */
assert(sd_rtnl_message_read(m, &type, (void **) &mtu_reply) == 1);
assert(type == IFLA_MTU);
- assert(*mtu_reply == 0);
+ assert(*mtu_reply == mtu);
assert(sd_rtnl_message_read(m, &type, &data) == 1);
assert(type == IFLA_GROUP);