BIND 10 trac2108_3, updated. 91ab8fe87a310dd610a38c8ff7813963baf5d576 [2108] Check that iterating past the end throws an exception

BIND 10 source code commits bind10-changes at lists.isc.org
Wed Sep 5 13:45:26 UTC 2012


The branch, trac2108_3 has been updated
       via  91ab8fe87a310dd610a38c8ff7813963baf5d576 (commit)
      from  64b3b91a2685a351317a43999fc26316099f70b3 (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 91ab8fe87a310dd610a38c8ff7813963baf5d576
Author: Mukund Sivaraman <muks at isc.org>
Date:   Wed Sep 5 19:15:13 2012 +0530

    [2108] Check that iterating past the end throws an exception

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

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

-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/memory/tests/memory_client_unittest.cc b/src/lib/datasrc/memory/tests/memory_client_unittest.cc
index a7dc336..96ec85d 100644
--- a/src/lib/datasrc/memory/tests/memory_client_unittest.cc
+++ b/src/lib/datasrc/memory/tests/memory_client_unittest.cc
@@ -96,6 +96,9 @@ TEST_F(MemoryClientTest, getIterator) {
 
     // There's nothing else in this zone
     EXPECT_EQ(ConstRRsetPtr(), iterator->getNextRRset());
+
+    // Iterating past the end should result in an exception
+    EXPECT_THROW(iterator->getNextRRset(), isc::Unexpected);
 }
 
 TEST_F(MemoryClientTest, getIteratorGetSOAThrowsNotImplemented) {



More information about the bind10-changes mailing list