BIND 10 trac2108_3, updated. cc5d46563e11e7c987265f1be51c908e3bca4fb7 [2108] Add zone counter checks when empty zone file is loaded

BIND 10 source code commits bind10-changes at lists.isc.org
Fri Sep 7 04:10:13 UTC 2012


The branch, trac2108_3 has been updated
       via  cc5d46563e11e7c987265f1be51c908e3bca4fb7 (commit)
      from  0f8bc280b95e71f7b5095dea586c84868c852d7c (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 cc5d46563e11e7c987265f1be51c908e3bca4fb7
Author: Mukund Sivaraman <muks at isc.org>
Date:   Fri Sep 7 09:40:04 2012 +0530

    [2108] Add zone counter checks when empty zone file is loaded

-----------------------------------------------------------------------

Summary of changes:
 .../datasrc/memory/tests/memory_client_unittest.cc |    6 ++++++
 1 file changed, 6 insertions(+)

-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/memory/tests/memory_client_unittest.cc b/src/lib/datasrc/memory/tests/memory_client_unittest.cc
index 41ff923..1376550 100644
--- a/src/lib/datasrc/memory/tests/memory_client_unittest.cc
+++ b/src/lib/datasrc/memory/tests/memory_client_unittest.cc
@@ -123,9 +123,15 @@ TEST_F(MemoryClientTest, loadEmptyZoneFileThrows) {
     // When an empty zone file is loaded, the origin doesn't even have
     // an SOA RR. This condition should be avoided, and hence load()
     // should throw when an empty zone is loaded.
+
+    EXPECT_EQ(0, client_->getZoneCount());
+
     EXPECT_THROW(client_->load(Name("."),
                                TEST_DATA_DIR "/empty.zone"),
                  InMemoryClient::EmptyZone);
+
+    EXPECT_EQ(0, client_->getZoneCount());
+
     // Teardown checks for memory segment leaks
 }
 



More information about the bind10-changes mailing list