mirror of
https://github.com/google/googletest.git
synced 2025-12-06 16:57:00 +08:00
Merge 553c2d5dd77d1b6bd9d1442dc9d0b4b70253ab79 into 1b96fa13f549387b7549cc89e1a785cf143a1a50
This commit is contained in:
commit
4aa7c72bbe
@ -5465,7 +5465,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…
x
Reference in New Issue
Block a user