Disable automatic handling of SEH exceptions in gtest
This turns hangs on win_dbg into actually crashes R=machenbach@chromium.org BUG= Review-Url: https://codereview.chromium.org/2613033002 Cr-Commit-Position: refs/heads/master@{#42090}
This commit is contained in:
parent
48b06536a7
commit
e2d2dd5318
@ -37,6 +37,9 @@ class DefaultPlatformEnvironment final : public ::testing::Environment {
|
||||
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
// Don't catch SEH exceptions and continue as the following tests might hang
|
||||
// in an broken environment on windows.
|
||||
testing::GTEST_FLAG(catch_exceptions) = false;
|
||||
testing::InitGoogleMock(&argc, argv);
|
||||
testing::AddGlobalTestEnvironment(new DefaultPlatformEnvironment);
|
||||
v8::V8::SetFlagsFromCommandLine(&argc, argv, true);
|
||||
|
Loading…
Reference in New Issue
Block a user