You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2013/04/24 22:37:51 UTC

svn commit: r1471659 - /incubator/mesos/trunk/third_party/libprocess/include/process/gtest.hpp

Author: benh
Date: Wed Apr 24 20:37:51 2013
New Revision: 1471659

URL: http://svn.apache.org/r1471659
Log:
Updated output of libprocess gtest abstractions.

Review: https://reviews.apache.org/r/10760

Modified:
    incubator/mesos/trunk/third_party/libprocess/include/process/gtest.hpp

Modified: incubator/mesos/trunk/third_party/libprocess/include/process/gtest.hpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/third_party/libprocess/include/process/gtest.hpp?rev=1471659&r1=1471658&r2=1471659&view=diff
==============================================================================
--- incubator/mesos/trunk/third_party/libprocess/include/process/gtest.hpp (original)
+++ incubator/mesos/trunk/third_party/libprocess/include/process/gtest.hpp Wed Apr 24 20:37:51 2013
@@ -54,7 +54,7 @@ template <typename T>
       << expr << " was discarded";
   } else if (actual.isFailed()) {
     return ::testing::AssertionFailure()
-      << expr << ": " << actual.failure();
+      << "(" << expr << ").failure(): " << actual.failure();
   }
 
   return ::testing::AssertionSuccess();
@@ -95,7 +95,7 @@ template <typename T>
       << "Failed to wait " << duration << " for " << expr;
   } else if (actual.isFailed()) {
     return ::testing::AssertionFailure()
-      << expr << ": " << actual.failure();
+      << "(" << expr << ").failure(): " << actual.failure();
   } else if (actual.isReady()) {
     return ::testing::AssertionFailure()
       << expr << " is ready (" << ::testing::PrintToString(actual.get()) << ")";