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
Sebastian Schrader
Kea
Commits
6430d56f
Commit
6430d56f
authored
Oct 17, 2012
by
Michal 'vorner' Vaner
Browse files
[2207] Test it cleans up automatically
parent
ccfb2bf2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/datasrc/tests/memory/zone_writer_unittest.cc
View file @
6430d56f
...
...
@@ -217,4 +217,11 @@ TEST_F(ZoneWriterLocalTest, loadNull) {
EXPECT_NO_THROW
(
writer_
->
cleanup
());
}
// Check the object cleans up in case we forget it.
TEST_F
(
ZoneWriterLocalTest
,
autoCleanUp
)
{
// Load data and forget about it. It should get released
// when the writer itself is destroyed.
EXPECT_NO_THROW
(
writer_
->
load
());
}
}
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