From: Francis Dupont Date: Tue, 6 Mar 2018 16:31:41 +0000 (+0100) Subject: [5515] Fixed adjustIfaceDataUseRouting unit test X-Git-Tag: trac5549a_base~25^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a727155bbde25a3ca54ab865aeac466ac774005;p=thirdparty%2Fkea.git [5515] Fixed adjustIfaceDataUseRouting unit test --- diff --git a/src/bin/dhcp4/tests/dhcp4_srv_unittest.cc b/src/bin/dhcp4/tests/dhcp4_srv_unittest.cc index 99789e1cf5..324bd0f74c 100644 --- a/src/bin/dhcp4/tests/dhcp4_srv_unittest.cc +++ b/src/bin/dhcp4/tests/dhcp4_srv_unittest.cc @@ -339,9 +339,11 @@ TEST_F(Dhcpv4SrvTest, adjustIfaceDataUseRouting) { // No specific interface is selected as outbound interface and no specific // local address is provided. The IfaceMgr will figure out which interface to use. EXPECT_TRUE(resp->getLocalAddr().isV4Zero()); - EXPECT_TRUE(resp->getIface().empty()); EXPECT_FALSE(resp->indexSet()); + // Fixed in #5515 so now the interface name is never empty. + EXPECT_FALSE(resp->getIface().empty()); + // Another test verifies that setting outbound interface to same as inbound will // cause the server to set interface and local address as expected.