Browse Source

Warning about unused found variable fixed.

Tomek Mrugalski 13 years ago
parent
commit
0cc0fe82ac
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/lib/dhcp/tests/iface_mgr_unittest.cc

+ 3 - 0
src/lib/dhcp/tests/iface_mgr_unittest.cc

@@ -867,6 +867,9 @@ TEST_F(IfaceMgrTest, detectIfaces_linux) {
                      << " matched with 'ifconfig -a' output." << endl;
             }
         }
+        if (!found) { // corresponding interface was not found
+            FAIL();
+        }
     }
 
     delete ifacemgr;