diff options
author | Sergey <sergionso@gmail.com> | 2023-02-21 20:29:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-21 20:29:20 (GMT) |
commit | 10493e3854db0c4709f9ddd1ac10b974d30219f5 (patch) | |
tree | dc99aeb1733b49ef01d855acb4508bba3d5664a3 /googletest/src | |
parent | 750d67d809700ae8fca6d610f7b41b71aa161808 (diff) | |
download | googletest-10493e3854db0c4709f9ddd1ac10b974d30219f5.zip googletest-10493e3854db0c4709f9ddd1ac10b974d30219f5.tar.gz googletest-10493e3854db0c4709f9ddd1ac10b974d30219f5.tar.bz2 |
Fix error in_death_test_child_process: undeclared identifierrefs/pull/4164/head
The error occurs if !GTEST_HAS_DEATH_TEST on Windows.
Diffstat (limited to 'googletest/src')
-rw-r--r-- | googletest/src/gtest.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/googletest/src/gtest.cc b/googletest/src/gtest.cc index a60a042..dd7752c 100644 --- a/googletest/src/gtest.cc +++ b/googletest/src/gtest.cc @@ -5416,6 +5416,9 @@ int UnitTest::Run() { impl()->set_catch_exceptions(GTEST_FLAG_GET(catch_exceptions)); #if GTEST_OS_WINDOWS +#if !GTEST_HAS_DEATH_TEST + const bool in_death_test_child_process = false; +#endif // Either the user wants Google Test to catch exceptions thrown by the // tests or this is executing in the context of death test child // process. In either case the user does not want to see pop-up dialogs |