From: Thomas Markwalder Date: Thu, 11 Jul 2013 09:54:27 +0000 (-0400) Subject: [master] Corrected a build failure under Googletest 1.4 X-Git-Tag: bind10-1.2.0beta1-release~341 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bb7465ef1ba3853c069c44f8f1ab6491782fcd5f;p=thirdparty%2Fkea.git [master] Corrected a build failure under Googletest 1.4 in D2 unit test. --- diff --git a/src/bin/d2/tests/d_test_stubs.h b/src/bin/d2/tests/d_test_stubs.h index 58ebcd44f7..99670de761 100644 --- a/src/bin/d2/tests/d_test_stubs.h +++ b/src/bin/d2/tests/d_test_stubs.h @@ -608,11 +608,12 @@ public: try { config_set_ = isc::data::Element::fromJSON(json_text); } catch (const isc::Exception &ex) { - return ::testing::AssertionFailure() - << "JSON text failed to parse:" << ex.what(); + return (::testing::AssertionFailure(::testing::Message() << + "JSON text failed to parse:" + << ex.what())); } - return ::testing::AssertionSuccess(); + return (::testing::AssertionSuccess()); } @@ -628,11 +629,12 @@ public: isc::data::ConstElementPtr comment; comment = isc::config::parseAnswer(rcode, answer_); if (rcode == should_be) { - return testing::AssertionSuccess(); + return (testing::AssertionSuccess()); } - return ::testing::AssertionFailure() << "checkAnswer rcode:" - << rcode << " comment: " << *comment; + return (::testing::AssertionFailure(::testing::Message() << + "checkAnswer rcode:" << rcode + << " comment: " << *comment)); } /// @brief Configuration set being tested.