From 34602eb82272198bfcf66813aab9932b7e20026f Mon Sep 17 00:00:00 2001 From: shiqian Date: Mon, 30 Jun 2008 18:58:53 +0000 Subject: [PATCH] Edited wiki page through web user interface. --- wiki/GoogleTestAdvancedGuide.wiki | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wiki/GoogleTestAdvancedGuide.wiki b/wiki/GoogleTestAdvancedGuide.wiki index de3d4ef6..fb968ac5 100644 --- a/wiki/GoogleTestAdvancedGuide.wiki +++ b/wiki/GoogleTestAdvancedGuide.wiki @@ -425,7 +425,7 @@ TEST(MyDeathTest, TestTwo) { } int main(int argc, char** argv) { - ParseGTestFlags(argv[0], &argc, &argv, true); + testing::InitGoogleTest(&argc, argv); testing::FLAGS_gtest_death_test_style = "fast"; return RUN_ALL_TESTS(); } @@ -901,7 +901,7 @@ _Availability:_ Linux, Windows, Mac. Google Test test programs are ordinary executables. Once built, you can run them directly and affect their behavior via the following environment variables and/or command line flags. For the flags to work, your programs must call -`testing::ParseGTestFlags()` before calling `RUN_ALL_TESTS()`. +`testing::InitGoogleTest()` before calling `RUN_ALL_TESTS()`. If an option is specified both by an environment variable and by a flag, the latter takes precedence.