mirror of
https://github.com/google/googletest.git
synced 2026-06-15 00:16:13 +08:00
Mark gtest_dt_ptr as const.
PiperOrigin-RevId: 920667027 Change-Id: I3dd71c96e206eb19bf3e62bb08ce7043d83fb526
This commit is contained in:
parent
add971c7cb
commit
09f45f51fb
@ -229,7 +229,8 @@ GTEST_API_ bool ExitedUnsuccessfully(int exit_status);
|
||||
goto GTEST_CONCAT_TOKEN_(gtest_label_, __LINE__); \
|
||||
} \
|
||||
if (gtest_dt != nullptr) { \
|
||||
std::unique_ptr< ::testing::internal::DeathTest> gtest_dt_ptr(gtest_dt); \
|
||||
const std::unique_ptr< ::testing::internal::DeathTest> gtest_dt_ptr( \
|
||||
gtest_dt); \
|
||||
switch (gtest_dt->AssumeRole()) { \
|
||||
case ::testing::internal::DeathTest::OVERSEE_TEST: \
|
||||
if (!gtest_dt->Passed(predicate(gtest_dt->Wait()))) { \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user