Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: test/unittests/run-all-unittests.cc

Issue 2613033002: Disable automatic handling of SEH exceptions in gtest (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "include/libplatform/libplatform.h" 5 #include "include/libplatform/libplatform.h"
6 #include "include/v8.h" 6 #include "include/v8.h"
7 #include "src/base/compiler-specific.h" 7 #include "src/base/compiler-specific.h"
8 #include "testing/gmock/include/gmock/gmock.h" 8 #include "testing/gmock/include/gmock/gmock.h"
9 9
10 namespace { 10 namespace {
(...skipping 19 matching lines...) Expand all
30 } 30 }
31 31
32 private: 32 private:
33 v8::Platform* platform_; 33 v8::Platform* platform_;
34 }; 34 };
35 35
36 } // namespace 36 } // namespace
37 37
38 38
39 int main(int argc, char** argv) { 39 int main(int argc, char** argv) {
40 // Don't catch SEH exceptions and continue as the following tests might hang
41 // in an broken environment on windows.
42 testing::GTEST_FLAG(catch_exceptions) = false;
40 testing::InitGoogleMock(&argc, argv); 43 testing::InitGoogleMock(&argc, argv);
41 testing::AddGlobalTestEnvironment(new DefaultPlatformEnvironment); 44 testing::AddGlobalTestEnvironment(new DefaultPlatformEnvironment);
42 v8::V8::SetFlagsFromCommandLine(&argc, argv, true); 45 v8::V8::SetFlagsFromCommandLine(&argc, argv, true);
43 v8::V8::InitializeExternalStartupData(argv[0]); 46 v8::V8::InitializeExternalStartupData(argv[0]);
44 return RUN_ALL_TESTS(); 47 return RUN_ALL_TESTS();
45 } 48 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698