diff options
author | David Mott <mott.david.j@gmail.com> | 2016-06-25 16:21:09 -0500 |
---|---|---|
committer | David Mott <mott.david.j@gmail.com> | 2016-06-25 16:21:09 -0500 |
commit | 2489c307474809d1c2e2c177353bfbd82b9235f9 (patch) | |
tree | 4d9afd57e20ae60144f1e2d514b4111eae9a46a5 | |
parent | e35015f5390458c3bf56538c9f01f64b8bed828b (diff) | |
download | googletest-2489c307474809d1c2e2c177353bfbd82b9235f9.tar.gz googletest-2489c307474809d1c2e2c177353bfbd82b9235f9.tar.bz2 googletest-2489c307474809d1c2e2c177353bfbd82b9235f9.zip |
Fix to tests that return object which implement operator bool
-rw-r--r-- | googletest/include/gtest/gtest.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/googletest/include/gtest/gtest.h b/googletest/include/gtest/gtest.h index f846c5bd..0ee03d06 100644 --- a/googletest/include/gtest/gtest.h +++ b/googletest/include/gtest/gtest.h @@ -1857,13 +1857,13 @@ class TestWithParam : public Test, public WithParamInterface<T> { // AssertionResult. For more information on how to use AssertionResult with // these macros see comments on that class. #define EXPECT_TRUE(condition) \ - GTEST_TEST_BOOLEAN_((condition), #condition, false, true, \ + GTEST_TEST_BOOLEAN_(!!(condition), #condition, false, true, \ GTEST_NONFATAL_FAILURE_) #define EXPECT_FALSE(condition) \ GTEST_TEST_BOOLEAN_(!(condition), #condition, true, false, \ GTEST_NONFATAL_FAILURE_) #define ASSERT_TRUE(condition) \ - GTEST_TEST_BOOLEAN_((condition), #condition, false, true, \ + GTEST_TEST_BOOLEAN_(!!(condition), #condition, false, true, \ GTEST_FATAL_FAILURE_) #define ASSERT_FALSE(condition) \ GTEST_TEST_BOOLEAN_(!(condition), #condition, true, false, \ |