summaryrefslogtreecommitdiff
path: root/test/gtest_repeat_test.cc
diff options
context:
space:
mode:
authorshiqian <shiqian@861a406c-534a-0410-8894-cb66d6ee9925>2008-08-01 19:04:48 +0000
committershiqian <shiqian@861a406c-534a-0410-8894-cb66d6ee9925>2008-08-01 19:04:48 +0000
commitb5150233bec111306f340bf486a1a0624b3a817e (patch)
tree155a3d8bd238349da5c4f883ff100faaeeaf6bfb /test/gtest_repeat_test.cc
parentdd4a17bc20377d250ed116b1083d851adbe45f25 (diff)
downloadgoogletest-b5150233bec111306f340bf486a1a0624b3a817e.tar.gz
Fixes the definition of GTEST_ATTRIBUTE_UNUSED and make the tests pass in opt mode.
git-svn-id: http://googletest.googlecode.com/svn/trunk@74 861a406c-534a-0410-8894-cb66d6ee9925
Diffstat (limited to 'test/gtest_repeat_test.cc')
-rw-r--r--test/gtest_repeat_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/gtest_repeat_test.cc b/test/gtest_repeat_test.cc
index fa52442..e2f0381 100644
--- a/test/gtest_repeat_test.cc
+++ b/test/gtest_repeat_test.cc
@@ -58,6 +58,8 @@ using testing::GTEST_FLAG(repeat);
namespace {
+// We need this when we are testing Google Test itself and therefore
+// cannot use Google Test assertions.
#define GTEST_CHECK_INT_EQ_(expected, actual) \
do {\
const int expected_val = (expected);\
@@ -130,8 +132,6 @@ void ResetCounts() {
// Checks that the count for each test is expected.
void CheckCounts(int expected) {
- // We cannot use Google Test assertions here since we are testing Google Test
- // itself.
GTEST_CHECK_INT_EQ_(expected, g_environment_set_up_count);
GTEST_CHECK_INT_EQ_(expected, g_environment_tear_down_count);
GTEST_CHECK_INT_EQ_(expected, g_should_fail_count);