Merge 553c2d5dd7
into 445e9bd8d0
This commit is contained in:
commit
de960f19dc
@ -5446,7 +5446,8 @@ void UnitTest::AddTestPartResult(TestPartResult::Type result_type,
|
||||
// in the code (perhaps in order to use Google Test assertions
|
||||
// with another testing framework) and specify the former on the
|
||||
// command line for debugging.
|
||||
if (GTEST_FLAG_GET(break_on_failure)) {
|
||||
if (GTEST_FLAG_GET(break_on_failure) &&
|
||||
result_type != TestPartResult::kNonFatalFailure) {
|
||||
#if defined(GTEST_OS_WINDOWS) && !defined(GTEST_OS_WINDOWS_PHONE) && \
|
||||
!defined(GTEST_OS_WINDOWS_RT)
|
||||
// Using DebugBreak on Windows allows gtest to still break into a debugger
|
||||
|
@ -54,6 +54,7 @@ int main(int argc, char** argv) {
|
||||
std::set_terminate(&TerminateHandler);
|
||||
#endif
|
||||
testing::InitGoogleTest(&argc, argv);
|
||||
GTEST_FLAG_SET(throw_on_failure, true);
|
||||
|
||||
// We want to ensure that people can use Google Test assertions in
|
||||
// other testing frameworks, as long as they initialize Google Test
|
||||
|
Loading…
Reference in New Issue
Block a user