From cfefb61bf379ae2eca51c6a569c3d740044080dc Mon Sep 17 00:00:00 2001 From: Alex Fabijanic Date: Wed, 20 Dec 2017 21:05:51 +0100 Subject: [PATCH] fix NetworkInterface test --- Net/testsuite/src/NetworkInterfaceTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Net/testsuite/src/NetworkInterfaceTest.cpp b/Net/testsuite/src/NetworkInterfaceTest.cpp index 230eb9384..228e56099 100644 --- a/Net/testsuite/src/NetworkInterfaceTest.cpp +++ b/Net/testsuite/src/NetworkInterfaceTest.cpp @@ -218,9 +218,9 @@ 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