diff options
author | Gennadiy Civil <misterg@google.com> | 2018-02-23 16:07:18 (GMT) |
---|---|---|
committer | Gennadiy Civil <misterg@google.com> | 2018-02-23 16:07:18 (GMT) |
commit | 3299a2386cf2a26b486a0ac7a75e50a94bbd1a4b (patch) | |
tree | d502c7dfdeafd9a7331f217faa7def0854366ef0 /googletest | |
parent | c0563458eef2e7251443d580c4533e300c19e8e3 (diff) | |
download | googletest-3299a2386cf2a26b486a0ac7a75e50a94bbd1a4b.zip googletest-3299a2386cf2a26b486a0ac7a75e50a94bbd1a4b.tar.gz googletest-3299a2386cf2a26b486a0ac7a75e50a94bbd1a4b.tar.bz2 |
merging unittests - 2refs/pull/1474/head
Diffstat (limited to 'googletest')
-rw-r--r-- | googletest/test/gtest_unittest.cc | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/googletest/test/gtest_unittest.cc b/googletest/test/gtest_unittest.cc index a5743fc..bf7621e 100644 --- a/googletest/test/gtest_unittest.cc +++ b/googletest/test/gtest_unittest.cc @@ -2088,7 +2088,7 @@ class UnitTestRecordPropertyTestEnvironment : public Environment { }; // This will test property recording outside of any test or test case. -Environment* record_property_env GTEST_ATTRIBUTE_UNUSED_ = +static Environment* record_property_env = AddGlobalTestEnvironment(new UnitTestRecordPropertyTestEnvironment); // This group of tests is for predicate assertions (ASSERT_PRED*, etc) @@ -3361,7 +3361,7 @@ class NoFatalFailureTest : public Test { void DoAssertNoFatalFailureOnFails() { ASSERT_NO_FATAL_FAILURE(Fails()); - ADD_FAILURE() << "shold not reach here."; + ADD_FAILURE() << "should not reach here."; } void DoExpectNoFatalFailureOnFails() { @@ -6893,14 +6893,6 @@ TEST(StaticAssertTypeEqTest, CompilesForEqualTypes) { StaticAssertTypeEq<int*, IntAlias*>(); } -TEST(GetCurrentOsStackTraceExceptTopTest, ReturnsTheStackTrace) { - testing::UnitTest* const unit_test = testing::UnitTest::GetInstance(); - - // We don't have a stack walker in Google Test yet. - EXPECT_STREQ("", GetCurrentOsStackTraceExceptTop(unit_test, 0).c_str()); - EXPECT_STREQ("", GetCurrentOsStackTraceExceptTop(unit_test, 1).c_str()); -} - TEST(HasNonfatalFailureTest, ReturnsFalseWhenThereIsNoFailure) { EXPECT_FALSE(HasNonfatalFailure()); } @@ -7660,7 +7652,7 @@ TEST(NativeArrayTest, MethodsWork) { EXPECT_EQ(0, *it); ++it; EXPECT_EQ(1, *it); - ++it; + it++; EXPECT_EQ(2, *it); ++it; EXPECT_EQ(na.end(), it); |