Skip to content

Commit

Permalink
Merge pull request #4164 from sergio-nsk:patch-2
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 512753220
Change-Id: I3f7ad6c62c738d1d7405c50924b36deac8a9ac85
  • Loading branch information
copybara-github committed Feb 27, 2023
2 parents 6882aa0 + 10493e3 commit c7d0bc8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions googletest/src/gtest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5409,6 +5409,8 @@ int UnitTest::Run() {
in_death_test_child_process
? nullptr
: internal::posix::GetEnv("TEST_PREMATURE_EXIT_FILE"));
#else
const bool in_death_test_child_process = false;
#endif // GTEST_HAS_DEATH_TEST

// Captures the value of GTEST_FLAG(catch_exceptions). This value will be
Expand Down Expand Up @@ -5456,6 +5458,8 @@ int UnitTest::Run() {
}
#endif
}
#else
(void)in_death_test_child_process; // Needed inside the #if block above
#endif // GTEST_OS_WINDOWS

return internal::HandleExceptionsInMethodIfSupported(
Expand Down

0 comments on commit c7d0bc8

Please sign in to comment.