From: Tomek Mrugalski Date: Fri, 7 Oct 2011 16:41:24 +0000 (+0000) Subject: Fixed dhcp6/iface_mgr test compilation problem on solaris10 X-Git-Tag: perftcpdns_before_epoll~37^2~25^2~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7e8fc92cb83d984188bd1556ead421bee39d9581;p=thirdparty%2Fkea.git Fixed dhcp6/iface_mgr test compilation problem on solaris10 --- diff --git a/src/bin/dhcp6/tests/iface_mgr_unittest.cc b/src/bin/dhcp6/tests/iface_mgr_unittest.cc index a726511390..2e08528da0 100644 --- a/src/bin/dhcp6/tests/iface_mgr_unittest.cc +++ b/src/bin/dhcp6/tests/iface_mgr_unittest.cc @@ -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; }