[#4294] --gtest_break_on_failure conflicts with EXPECT_NONFATAL_FAILURE.

This commit is contained in:
Dan Avram 2023-10-29 21:11:59 +02:00
parent ed22d4a489
commit e4b6d065c0

View file

@ -5352,7 +5352,8 @@ void UnitTest::AddTestPartResult(TestPartResult::Type result_type,
result);
if (result_type != TestPartResult::kSuccess &&
result_type != TestPartResult::kSkip) {
result_type != TestPartResult::kSkip &&
result_type != TestPartResult::kNonFatalFailure) {
// gtest_break_on_failure takes precedence over
// gtest_throw_on_failure. This allows a user to set the latter
// in the code (perhaps in order to use Google Test assertions