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:
jochen 2017-01-05 04:22:26 -08:00 committed by Commit bot
parent 48b06536a7
commit e2d2dd5318

View File

@ -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);