OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium 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 "testing/gtest/include/gtest/gtest.h" | 5 #include "testing/gtest/include/gtest/gtest.h" |
| 6 |
| 7 |
6 int main(int argc, char *argv[]) { | 8 int main(int argc, char *argv[]) { |
7 testing::InitGoogleTest(&argc, argv); | 9 testing::InitGoogleTest(&argc, argv); |
8 // Always go through re-execution for death tests. | 10 // Always go through re-execution for death tests. |
9 // This makes gtest only marginally slower for us and has the | 11 // This makes gtest only marginally slower for us and has the |
10 // additional side effect of getting rid of gtest warnings about fork() | 12 // additional side effect of getting rid of gtest warnings about fork() |
11 // safety. | 13 // safety. |
12 ::testing::FLAGS_gtest_death_test_style = "threadsafe"; | 14 ::testing::FLAGS_gtest_death_test_style = "threadsafe"; |
13 return RUN_ALL_TESTS(); | 15 return RUN_ALL_TESTS(); |
14 } | 16 } |
OLD | NEW |