Commit 44f92aeb authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[2107] renamed exception-safety tests for ZoneDataTest with more comments.

hopefully the new name better represents the intent.
parent 9ebbd0cc
......@@ -150,10 +150,12 @@ TEST_F(ZoneDataTest, getOriginNode) {
EXPECT_EQ(LabelSequence(zname_), zone_data_->getOriginNode()->getLabels());
TEST_F(ZoneDataTest, throwOnCreate) {
TEST_F(ZoneDataTest, exceptionSafetyOnCreate) {
// Note: below, we use our knowledge of how memory allocation happens
// within the NSEC3Data, the zone data and the underlying domain tree
// implementation.
// implementation. We'll emulate rare situations where allocate() fails
// with an exception, and confirm it doesn't cause any harsh disruption
// or leak.
// Creating internal NSEC3 tree will succeed, but allocation of NSEC3Data
// will fail due to bad_alloc. It shouldn't cause memory leak
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment