mirror of
https://github.com/google/googletest.git
synced 2026-07-30 16:26:24 +08:00
Add default case to death test AssumeRole() switch
Meta has -Wswitch-default enabled for large parts of the repository. This warning requires a default case to cover non-exhaustive enumeration handling. This adds a default case that logs a fatal error for any unexpected AssumeRole() return value.
This commit is contained in:
parent
985d542c73
commit
4bc9f960bb
@ -244,6 +244,8 @@ GTEST_API_ bool ExitedUnsuccessfully(int exit_status);
|
||||
gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE); \
|
||||
break; \
|
||||
} \
|
||||
default: \
|
||||
GTEST_LOG_(FATAL) << "Unexpected AssumeRole() return value."; \
|
||||
} \
|
||||
} \
|
||||
} else \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user