]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[trac4206_0.9.2] Fixed Dhcp4 unit test failure under OS-X
authorThomas Markwalder <tmark@isc.org>
Wed, 9 Dec 2015 15:58:02 +0000 (10:58 -0500)
committerThomas Markwalder <tmark@isc.org>
Wed, 9 Dec 2015 15:58:02 +0000 (10:58 -0500)
src/bin/dhcp4/tests/dhcp4_srv_unittest.cc
    TEST_F(Dhcpv4SrvTest, emptyClientId)
        Added code to set up test interfaces

src/bin/dhcp4/tests/dhcp4_srv_unittest.cc

index 221cc63da54175d27a9dd015ab49c65ec5e8852a..17f1f17d00e1b32bc63de3a08baedac14dad2f45 100644 (file)
@@ -3413,6 +3413,8 @@ TEST_F(Dhcpv4SrvTest, statisticsUnknownRcvd) {
 // This test verifies that the server is able to handle an empty client-id
 // in incoming client message.
 TEST_F(Dhcpv4SrvTest, emptyClientId) {
+    IfaceMgrTestConfig test_config(true);
+    IfaceMgr::instance().openSockets4();
     Dhcp4Client client;
 
     EXPECT_NO_THROW(configure(CONFIGS[0], *client.getServer()));