]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
Fixed dhcp6/iface_mgr test compilation problem on solaris10
authorTomek Mrugalski <tomasz@isc.org>
Fri, 7 Oct 2011 16:41:24 +0000 (16:41 +0000)
committerTomek Mrugalski <tomasz@isc.org>
Fri, 7 Oct 2011 16:41:24 +0000 (16:41 +0000)
src/bin/dhcp6/tests/iface_mgr_unittest.cc

index a726511390b5a2fc4d7e25ed0eee75ce59b899dd..2e08528da04c15cc8662dca61d16be321a6ee089 100644 (file)
@@ -73,7 +73,6 @@ TEST_F(IfaceMgrTest, ifaceClass) {
 }
 
 // TODO: Implement getPlainMac() test as soon as interface detection is implemented.
-
 TEST_F(IfaceMgrTest, getIface) {
 
     cout << "Interface checks. Please ignore socket binding errors." << endl;
@@ -106,7 +105,7 @@ TEST_F(IfaceMgrTest, getIface) {
     EXPECT_EQ(1, tmp->ifindex_);
 
     // check that non-existing interfaces are not returned
-    EXPECT_EQ(0, ifacemgr->getIface("wifi0") );
+    EXPECT_TRUE(ifacemgr->getIface("wifi0") == NULL );
 
     delete ifacemgr;
 }