Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
44f92aeb
Commit
44f92aeb
authored
Aug 28, 2012
by
JINMEI Tatuya
Browse files
[2107] renamed exception-safety tests for ZoneDataTest with more comments.
hopefully the new name better represents the intent.
parent
9ebbd0cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/datasrc/memory/tests/zone_data_unittest.cc
View file @
44f92aeb
...
...
@@ -150,10 +150,12 @@ TEST_F(ZoneDataTest, getOriginNode) {
EXPECT_EQ
(
LabelSequence
(
zname_
),
zone_data_
->
getOriginNode
()
->
getLabels
());
}
TEST_F
(
ZoneDataTest
,
throw
OnCreate
)
{
TEST_F
(
ZoneDataTest
,
exceptionSafety
OnCreate
)
{
// 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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment