From: Thomas Markwalder Date: Wed, 9 Dec 2015 15:58:02 +0000 (-0500) Subject: [trac4206_0.9.2] Fixed Dhcp4 unit test failure under OS-X X-Git-Tag: Kea-0.9.2-P1~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aeed14f1966a5436d1bf7740eacd2cee2995dbe1;p=thirdparty%2Fkea.git [trac4206_0.9.2] Fixed Dhcp4 unit test failure under OS-X src/bin/dhcp4/tests/dhcp4_srv_unittest.cc TEST_F(Dhcpv4SrvTest, emptyClientId) Added code to set up test interfaces --- diff --git a/src/bin/dhcp4/tests/dhcp4_srv_unittest.cc b/src/bin/dhcp4/tests/dhcp4_srv_unittest.cc index 221cc63da5..17f1f17d00 100644 --- a/src/bin/dhcp4/tests/dhcp4_srv_unittest.cc +++ b/src/bin/dhcp4/tests/dhcp4_srv_unittest.cc @@ -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()));