mirror of
https://github.com/google/googletest.git
synced 2024-12-27 10:11:03 +08:00
Googletest export
Use InitGoogleTest() instead of InitGoogle() in code example PiperOrigin-RevId: 308070819
This commit is contained in:
parent
b0e53e2d64
commit
d7ca9af004
@ -863,7 +863,7 @@ restored afterwards, so you need not do that yourself. For example:
|
||||
|
||||
```c++
|
||||
int main(int argc, char** argv) {
|
||||
InitGoogle(argv[0], &argc, &argv, true);
|
||||
::testing::InitGoogleTest(&argc, argv);
|
||||
::testing::FLAGS_gtest_death_test_style = "fast";
|
||||
return RUN_ALL_TESTS();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user