]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[trac4206_0.9.1] Fixed dhcp4 unit test failure under OS-X
authorThomas Markwalder <tmark@isc.org>
Wed, 9 Dec 2015 15:41:03 +0000 (10:41 -0500)
committerThomas Markwalder <tmark@isc.org>
Wed, 9 Dec 2015 15:41:03 +0000 (10:41 -0500)
src/bin/dhcp4/tests/dhcp4_srv_unittest.cc
 TEST_F(Dhcpv4SrvTest, emptyClientId) {
    Added code to setup the test interfaces so "eth0" exists

src/bin/dhcp4/tests/dhcp4_srv_unittest.cc

index 9cf0d3cba9e97af9f4b3e3c6f65e6b1a4926e7c5..7e6d6634c1dc8a144c69bb19e67d41d9ee269661 100644 (file)
@@ -3560,6 +3560,8 @@ TEST_F(Dhcpv4SrvTest, acceptMessageType) {
 // 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()));