summaryrefslogtreecommitdiffstats
path: root/src/lib/dns/tests/messagerenderer_unittest.cc
diff options
context:
space:
mode:
authorJINMEI Tatuya <jinmei@isc.org>2012-03-11 01:03:32 +0100
committerJINMEI Tatuya <jinmei@isc.org>2012-03-11 01:03:32 +0100
commit75b062049db49cade952510e66324761a8ba09b6 (patch)
treef0196321e8612ef282b3f37b8f95ac90c3d89851 /src/lib/dns/tests/messagerenderer_unittest.cc
parent[1603] one more editorial update in comments (diff)
downloadkea-75b062049db49cade952510e66324761a8ba09b6.tar.xz
kea-75b062049db49cade952510e66324761a8ba09b6.zip
[1603] make sure capacity trimming in MessageRenderer::clear() is coverd.
Diffstat (limited to 'src/lib/dns/tests/messagerenderer_unittest.cc')
-rw-r--r--src/lib/dns/tests/messagerenderer_unittest.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/dns/tests/messagerenderer_unittest.cc b/src/lib/dns/tests/messagerenderer_unittest.cc
index 928e06633c..bc526af3eb 100644
--- a/src/lib/dns/tests/messagerenderer_unittest.cc
+++ b/src/lib/dns/tests/messagerenderer_unittest.cc
@@ -229,5 +229,8 @@ TEST_F(MessageRendererTest, manyRRs) {
for (size_t i = 0; i < 1000; ++i) {
EXPECT_EQ(Name(lexical_cast<std::string>(i) + ".example"), Name(b));
}
+ // This will trigger trimming excessive hash items. It shouldn't cause
+ // any disruption.
+ EXPECT_NO_THROW(renderer.clear());
}
}