From 5e7ba78999797c530166c5d2f7e3e43980340117 Mon Sep 17 00:00:00 2001 From: Francis Dupont Date: Thu, 22 Aug 2024 14:51:01 +0200 Subject: [#3496] Extra changes by Razvan --- src/lib/dhcp/tests/libdhcp++_unittest.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/dhcp/tests/libdhcp++_unittest.cc b/src/lib/dhcp/tests/libdhcp++_unittest.cc index 3985b711b1..2b51a119b0 100644 --- a/src/lib/dhcp/tests/libdhcp++_unittest.cc +++ b/src/lib/dhcp/tests/libdhcp++_unittest.cc @@ -949,6 +949,7 @@ TEST_F(LibDhcpTest, unpackEmptyOption6) { ASSERT_TRUE(option_empty); EXPECT_EQ(1024, option_empty->getType()); EXPECT_EQ(4, option_empty->len()); + EXPECT_TRUE(option_empty->getEncapsulatedSpace().empty()); } // This test verifies that the following option structure can be parsed: @@ -2120,6 +2121,7 @@ TEST_F(LibDhcpTest, unpackEmptyOption4) { ASSERT_TRUE(option_empty); EXPECT_EQ(254, option_empty->getType()); EXPECT_EQ(2, option_empty->len()); + EXPECT_TRUE(option_empty->getEncapsulatedSpace().empty()); } // This test verifies that the following option structure can be parsed: @@ -2375,7 +2377,7 @@ TEST_F(LibDhcpTest, option43Pad) { } // Verifies that option 255 (END) is handled as END in option 43 (so when -//flexible pad end flag is true) only when option 255 (END) is not defined. +// flexible pad end flag is true) only when option 255 (END) is not defined. TEST_F(LibDhcpTest, option43End) { string space = "my-option43-space"; -- cgit v1.2.3