Googletest export

Fixes https://github.com/google/googletest/issues/2232

PiperOrigin-RevId: 244237560
This commit is contained in:
misterg 2019-04-18 15:33:56 -04:00 committed by Gennadiy Civil
parent 9f4f27b2a5
commit 0c68c865f3

View File

@ -5236,8 +5236,8 @@ bool UnitTestImpl::RunAllTests() {
// when we are inside the subprocess of a death test.
const int repeat = in_subprocess_for_death_test ? 1 : GTEST_FLAG(repeat);
// Repeats forever if the repeat count is negative.
const bool forever = repeat < 0;
for (int i = 0; forever || i != repeat; i++) {
const bool gtest_repeat_forever = repeat < 0;
for (int i = 0; gtest_repeat_forever || i != repeat; i++) {
// We want to preserve failures generated by ad-hoc test
// assertions executed before RUN_ALL_TESTS().
ClearNonAdHocTestResult();