diff options
Diffstat (limited to 'src/lib/dhcp/tests/option6_ia_unittest.cc')
-rw-r--r-- | src/lib/dhcp/tests/option6_ia_unittest.cc | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/lib/dhcp/tests/option6_ia_unittest.cc b/src/lib/dhcp/tests/option6_ia_unittest.cc index e1465218e7..c60a50ff70 100644 --- a/src/lib/dhcp/tests/option6_ia_unittest.cc +++ b/src/lib/dhcp/tests/option6_ia_unittest.cc @@ -211,13 +211,13 @@ TEST_F(Option6IATest, suboptions_unpack) { buf[i] = 0; memcpy(&buf[0], expected, 48); - Option6IA * ia; + Option6IA* ia = 0; EXPECT_NO_THROW({ - ia = new Option6IA(Option::V6, D6O_IA_NA, - buf, 128, 4, 44); + ia = new Option6IA(Option::V6, D6O_IA_NA, + buf, 128, 4, 44); + cout << "Parsed option:" << endl << ia->toText() << endl; }); - - cout << "Parsed option:" << endl << ia->toText() << endl; + ASSERT_TRUE(ia); EXPECT_EQ(D6O_IA_NA, ia->getType()); EXPECT_EQ(0x13579ace, ia->getIAID()); @@ -251,6 +251,4 @@ TEST_F(Option6IATest, suboptions_unpack) { delete ia; } - - } |