From: Marcin Siodelski Date: Mon, 27 Apr 2015 22:05:36 +0000 (-0700) Subject: [3791] Corrected the invalid IfaceMgr unit test. X-Git-Tag: trac3845_base^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9bb2bbaf6cda50d4ed73c9ba3d31b3dec788f615;p=thirdparty%2Fkea.git [3791] Corrected the invalid IfaceMgr unit test. --- diff --git a/src/lib/dhcp/tests/iface_mgr_unittest.cc b/src/lib/dhcp/tests/iface_mgr_unittest.cc index 6ea123b527..c4f74ecb65 100644 --- a/src/lib/dhcp/tests/iface_mgr_unittest.cc +++ b/src/lib/dhcp/tests/iface_mgr_unittest.cc @@ -526,14 +526,11 @@ TEST_F(IfaceMgrTest, dhcp6Sniffer) { } #endif -#if !defined(__apple_build_version__) || (__apple_build_version__ < 6020000) -TEST_F(IfaceMgrTest, basic) { - // Checks that IfaceManager can be instantiated - - IfaceMgr & ifacemgr = IfaceMgr::instance(); - ASSERT_TRUE(&ifacemgr != 0); +// This test verifies that creation of the IfaceMgr instance doesn't +// cause an exception. +TEST_F(IfaceMgrTest, instance) { + EXPECT_NO_THROW(IfaceMgr::instance()); } -#endif // This test verifies that sockets can be closed selectively, i.e. all // IPv4 sockets can be closed first and all IPv6 sockets remain open.