diff options
author | Copybara-Service <copybara-worker@google.com> | 2023-02-27 23:49:24 (GMT) |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-02-27 23:49:24 (GMT) |
commit | c7d0bc8309fc5b3bb73ee33e86fb6e3d760480aa (patch) | |
tree | 29e5977489bd14fe51418f26c8f49f7c5f009523 | |
parent | 6882aa0987c6d3266a05bbec609587a6f80510b9 (diff) | |
parent | 10493e3854db0c4709f9ddd1ac10b974d30219f5 (diff) | |
download | googletest-c7d0bc8309fc5b3bb73ee33e86fb6e3d760480aa.zip googletest-c7d0bc8309fc5b3bb73ee33e86fb6e3d760480aa.tar.gz googletest-c7d0bc8309fc5b3bb73ee33e86fb6e3d760480aa.tar.bz2 |
Merge pull request #4164 from sergio-nsk:patch-2
PiperOrigin-RevId: 512753220
Change-Id: I3f7ad6c62c738d1d7405c50924b36deac8a9ac85
-rw-r--r-- | googletest/src/gtest.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/googletest/src/gtest.cc b/googletest/src/gtest.cc index a60a042..8195e5f 100644 --- a/googletest/src/gtest.cc +++ b/googletest/src/gtest.cc @@ -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 @@ -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( |