diff --git a/Net/testsuite/src/NetworkInterfaceTest.cpp b/Net/testsuite/src/NetworkInterfaceTest.cpp index d2d9b42d5..4d2430dd7 100644 --- a/Net/testsuite/src/NetworkInterfaceTest.cpp +++ b/Net/testsuite/src/NetworkInterfaceTest.cpp @@ -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; } }