]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3791] Corrected the invalid IfaceMgr unit test.
authorMarcin Siodelski <marcin@isc.org>
Mon, 27 Apr 2015 22:05:36 +0000 (15:05 -0700)
committerMarcin Siodelski <marcin@isc.org>
Mon, 27 Apr 2015 22:05:36 +0000 (15:05 -0700)
src/lib/dhcp/tests/iface_mgr_unittest.cc

index 6ea123b527b4d66869b73cfcc835173b8b9478fd..c4f74ecb652a63567a469e0426dfa567bbdbdc11 100644 (file)
@@ -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.