fix NetworkInterface test

This commit is contained in:
Alex Fabijanic 2017-12-20 21:05:05 +01:00
parent bc5c40fb47
commit db414bf6e9

View File

@ -219,13 +219,14 @@ void NetworkInterfaceTest::testListMapConformance()
List::const_iterator ipEnd = ipList.end();
for(; ipIt != ipEnd; ++ipIt, ++counter, ++listIt)
{
if(listIt == l.end()) fail("wrong number of list items");
NetworkInterface::MACAddress lmac = listIt->macAddress();
assert (lmac == mac);
if(listIt == l.end()) fail("wrong number of list items");
}
}
else
{
++listIt;
++counter;
}
}