Index: third_party/crashpad/crashpad/handler/win/crash_other_program.cc |
diff --git a/third_party/crashpad/crashpad/handler/win/crash_other_program.cc b/third_party/crashpad/crashpad/handler/win/crash_other_program.cc |
index 389aee1f10bc024db4d51aaa347ea117bbcf426f..93a3a07ab3ab29f053024bb82ea80e53b7bfb440 100644 |
--- a/third_party/crashpad/crashpad/handler/win/crash_other_program.cc |
+++ b/third_party/crashpad/crashpad/handler/win/crash_other_program.cc |
@@ -20,6 +20,7 @@ |
#include "base/logging.h" |
#include "base/strings/stringprintf.h" |
#include "client/crashpad_client.h" |
+#include "gtest/gtest.h" |
#include "test/test_paths.h" |
#include "test/win/child_launcher.h" |
#include "util/file/file_io.h" |
@@ -93,6 +94,10 @@ int CrashOtherProgram(int argc, wchar_t* argv[]) { |
test_executable.DirName().Append(L"hanging_program.exe").value(); |
ChildLauncher child(child_test_executable, argv[1]); |
child.Start(); |
+ if (testing::Test::HasFatalFailure()) { |
+ LOG(ERROR) << "failed to start child"; |
+ return EXIT_FAILURE; |
+ } |
// Wait until it's ready. |
char c; |