]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] Corrected a build failure under Googletest 1.4
authorThomas Markwalder <tmark@isc.org>
Thu, 11 Jul 2013 09:54:27 +0000 (05:54 -0400)
committerThomas Markwalder <tmark@isc.org>
Thu, 11 Jul 2013 09:54:27 +0000 (05:54 -0400)
in D2 unit test.

src/bin/d2/tests/d_test_stubs.h

index 58ebcd44f7aecab26a95bcf88dee23408a3f78a4..99670de761931a0353c3bb02883a46ef5d9ec0ff 100644 (file)
@@ -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.