Skip to content

Commit

Permalink
Fix error in_death_test_child_process: undeclared identifier
Browse files Browse the repository at this point in the history
The error occurs if !GTEST_HAS_DEATH_TEST on Windows.
  • Loading branch information
sergio-nsk authored Feb 21, 2023
1 parent 750d67d commit 10493e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions googletest/src/gtest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 10493e3

Please sign in to comment.