BIND 10 trac2108_3, updated. 6ed1c019aa98e461b4cd2860a1e206750891e92b [2108] Test when add() is called with a null RRset
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu Sep 6 05:13:22 UTC 2012
The branch, trac2108_3 has been updated
via 6ed1c019aa98e461b4cd2860a1e206750891e92b (commit)
from cf353d1ae86e495f335d46f8153bac81f00b90c9 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 6ed1c019aa98e461b4cd2860a1e206750891e92b
Author: Mukund Sivaraman <muks at isc.org>
Date: Thu Sep 6 10:43:11 2012 +0530
[2108] Test when add() is called with a null RRset
-----------------------------------------------------------------------
Summary of changes:
.../datasrc/memory/tests/memory_client_unittest.cc | 10 ++++++++++
1 file changed, 10 insertions(+)
-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/memory/tests/memory_client_unittest.cc b/src/lib/datasrc/memory/tests/memory_client_unittest.cc
index 9222515..c0222fb 100644
--- a/src/lib/datasrc/memory/tests/memory_client_unittest.cc
+++ b/src/lib/datasrc/memory/tests/memory_client_unittest.cc
@@ -233,6 +233,16 @@ TEST_F(MemoryClientTest, addRRsetToNonExistentZoneThrows) {
EXPECT_THROW(client_->add(Name("example.org"), rrset_a), DataSourceError);
}
+TEST_F(MemoryClientTest, addNullRRsetThrows) {
+ client_->load(Name("example.org"),
+ TEST_DATA_DIR "/example.org-rrsigs.zone");
+
+ EXPECT_THROW(client_->add(Name("example.org"), ConstRRsetPtr()),
+ InMemoryClient::NullRRset);
+
+ // Teardown checks for memory segment leaks
+}
+
TEST_F(MemoryClientTest, add) {
client_->load(Name("example.org"), TEST_DATA_DIR "/example.org-empty.zone");
More information about the bind10-changes
mailing list