Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/google/googletest.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2021-08-02 13:19:40 +0300
committerAndy Soffer <asoffer@google.com>2021-08-04 20:54:33 +0300
commitc22ce88775eaa364d085de7741a3625f3f0d5055 (patch)
tree53ed03da797aa0616af2ed53a182211df0dc6fa5
parent29d254062230bc4430c2e7984d8120b6d7a79a3c (diff)
Googletest export
Standardize access to GoogleTest flags on GTEST_FLAG_GET/GTEST_FLAG_SET Custom implementations can decide how access to flags is performed depending on the implementation of flags being used. PiperOrigin-RevId: 388181424
-rw-r--r--docs/advanced.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/advanced.md b/docs/advanced.md
index 34aacb6b..3d970dad 100644
--- a/docs/advanced.md
+++ b/docs/advanced.md
@@ -568,12 +568,12 @@ restored afterwards, so you need not do that yourself. For example:
```c++
int main(int argc, char** argv) {
testing::InitGoogleTest(&argc, argv);
- testing::FLAGS_gtest_death_test_style = "fast";
+ GTEST_FLAG_SET(gtest_death_test_style, "fast");
return RUN_ALL_TESTS();
}
TEST(MyDeathTest, TestOne) {
- testing::FLAGS_gtest_death_test_style = "threadsafe";
+ GTEST_FLAG_SET(gtest_death_test_style, "threadsafe");
// This test is run in the "threadsafe" style:
ASSERT_DEATH(ThisShouldDie(), "");
}