BIND 10 trac2851, updated. 0ef74c3696b50b84cc1613fbdff09acb775c3e10 [2851] check return value of insertZone of mock data source, just in case.

BIND 10 source code commits bind10-changes at lists.isc.org
Wed May 8 23:03:36 UTC 2013


The branch, trac2851 has been updated
       via  0ef74c3696b50b84cc1613fbdff09acb775c3e10 (commit)
      from  654ec49fc5f8976cc6567b31ab8277d392f79b76 (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 0ef74c3696b50b84cc1613fbdff09acb775c3e10
Author: JINMEI Tatuya <jinmei at isc.org>
Date:   Wed May 8 16:03:14 2013 -0700

    [2851] check return value of insertZone of mock data source, just in case.

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

Summary of changes:
 src/lib/datasrc/tests/client_list_unittest.cc |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/tests/client_list_unittest.cc b/src/lib/datasrc/tests/client_list_unittest.cc
index 52f4e98..745654c 100644
--- a/src/lib/datasrc/tests/client_list_unittest.cc
+++ b/src/lib/datasrc/tests/client_list_unittest.cc
@@ -1007,9 +1007,9 @@ TEST_F(ListTest, reloadNewZone) {
               doReload(Name("example.com")));
 
     // If we add the zone, we can now reload it
-    static_cast<MockDataSourceClient*>(
-        list_->getDataSources()[0].data_src_client_)->
-        insertZone(Name("example.com"));
+    EXPECT_TRUE(static_cast<MockDataSourceClient*>(
+                    list_->getDataSources()[0].data_src_client_)->
+                insertZone(Name("example.com")));
     EXPECT_EQ(ConfigurableClientList::ZONE_SUCCESS,
               doReload(Name("example.com")));
 }



More information about the bind10-changes mailing list