From e650a0f7e51fc4158d001d04e30ffc239875d9f8 Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Fri, 16 Nov 2012 02:04:03 +0530 Subject: [PATCH] [2421] Put code inside EXPECT_NO_THROW --- src/lib/datasrc/tests/client_list_unittest.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/lib/datasrc/tests/client_list_unittest.cc b/src/lib/datasrc/tests/client_list_unittest.cc index 96dcc78075..6769e9b537 100644 --- a/src/lib/datasrc/tests/client_list_unittest.cc +++ b/src/lib/datasrc/tests/client_list_unittest.cc @@ -856,8 +856,11 @@ TEST_F(ListTest, BadMasterFile) { " }" "}]")); - // this should not throw even if there are any zone loading errors. - list_->configure(elem, true); + EXPECT_NO_THROW({ + // This should not throw even if there are any zone loading + // errors. + list_->configure(elem, true); + }); positiveResult(list_->find(Name("example.com."), true), ds_[0], Name("example.com."), true, "example.com", true); -- GitLab