From: JINMEI Tatuya Date: Wed, 8 May 2013 23:03:14 +0000 (-0700) Subject: [2851] check return value of insertZone of mock data source, just in case. X-Git-Tag: bind10-1.2.0beta1-release~466^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0ef74c3696b50b84cc1613fbdff09acb775c3e10;p=thirdparty%2Fkea.git [2851] check return value of insertZone of mock data source, just in case. --- diff --git a/src/lib/datasrc/tests/client_list_unittest.cc b/src/lib/datasrc/tests/client_list_unittest.cc index 52f4e98770..745654cf5c 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( - list_->getDataSources()[0].data_src_client_)-> - insertZone(Name("example.com")); + EXPECT_TRUE(static_cast( + list_->getDataSources()[0].data_src_client_)-> + insertZone(Name("example.com"))); EXPECT_EQ(ConfigurableClientList::ZONE_SUCCESS, doReload(Name("example.com"))); }