Makes gtest report failures in ad hoc test assertions executed before RUN_ALL_TESTS().
This commit is contained in:
@@ -3999,7 +3999,9 @@ int UnitTestImpl::RunAllTests() {
|
||||
// Repeats forever if the repeat count is negative.
|
||||
const bool forever = repeat < 0;
|
||||
for (int i = 0; forever || i != repeat; i++) {
|
||||
ClearResult();
|
||||
// We want to preserve failures generated by ad-hoc test
|
||||
// assertions executed before RUN_ALL_TESTS().
|
||||
ClearNonAdHocTestResult();
|
||||
|
||||
const TimeInMillis start = GetTimeInMillis();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user