BIND 10 trac2108_3, updated. 02c01e5d1d6ff331405f9622e26df72cd9651864 [2108] Test when add() is called with an empty rdata RRset
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu Sep 6 05:15:41 UTC 2012
The branch, trac2108_3 has been updated
via 02c01e5d1d6ff331405f9622e26df72cd9651864 (commit)
from 6ed1c019aa98e461b4cd2860a1e206750891e92b (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 02c01e5d1d6ff331405f9622e26df72cd9651864
Author: Mukund Sivaraman <muks at isc.org>
Date: Thu Sep 6 10:45:28 2012 +0530
[2108] Test when add() is called with an empty rdata RRset
-----------------------------------------------------------------------
Summary of changes:
.../datasrc/memory/tests/memory_client_unittest.cc | 12 ++++++++++++
1 file changed, 12 insertions(+)
-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/memory/tests/memory_client_unittest.cc b/src/lib/datasrc/memory/tests/memory_client_unittest.cc
index c0222fb..68e6ca2 100644
--- a/src/lib/datasrc/memory/tests/memory_client_unittest.cc
+++ b/src/lib/datasrc/memory/tests/memory_client_unittest.cc
@@ -243,6 +243,18 @@ TEST_F(MemoryClientTest, addNullRRsetThrows) {
// Teardown checks for memory segment leaks
}
+TEST_F(MemoryClientTest, addEmptyRRsetThrows) {
+ client_->load(Name("example.org"),
+ TEST_DATA_DIR "/example.org-rrsigs.zone");
+
+ RRsetPtr rrset_a(new RRset(Name("example.org"), RRClass::IN(), RRType::A(),
+ RRTTL(300)));
+ EXPECT_THROW(client_->add(Name("example.org"), rrset_a),
+ InMemoryClient::AddError);
+
+ // 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