Add const
qualifier to gtest_sentinel
which doesn't change.
PiperOrigin-RevId: 512094429 Change-Id: I29b116da65bc7471c43021d1650d90f7b2a685c2
This commit is contained in:
parent
d0ba3ccc76
commit
3d787f5a0d
@ -238,7 +238,7 @@ inline Matcher<const ::std::string&> MakeDeathTestMatcher(
|
||||
} \
|
||||
break; \
|
||||
case ::testing::internal::DeathTest::EXECUTE_TEST: { \
|
||||
::testing::internal::DeathTest::ReturnSentinel gtest_sentinel( \
|
||||
const ::testing::internal::DeathTest::ReturnSentinel gtest_sentinel( \
|
||||
gtest_dt); \
|
||||
GTEST_EXECUTE_DEATH_TEST_STATEMENT_(statement, gtest_dt); \
|
||||
gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE); \
|
||||
|
Loading…
Reference in New Issue
Block a user