summaryrefslogtreecommitdiff
path: root/googletest/src
diff options
context:
space:
mode:
authorCopybara-Service <copybara-worker@google.com>2023-02-27 15:49:24 -0800
committerCopybara-Service <copybara-worker@google.com>2023-02-27 15:49:24 -0800
commitc7d0bc8309fc5b3bb73ee33e86fb6e3d760480aa (patch)
tree29e5977489bd14fe51418f26c8f49f7c5f009523 /googletest/src
parent6882aa0987c6d3266a05bbec609587a6f80510b9 (diff)
parent10493e3854db0c4709f9ddd1ac10b974d30219f5 (diff)
downloadgoogletest-git-c7d0bc8309fc5b3bb73ee33e86fb6e3d760480aa.tar.gz
Merge pull request #4164 from sergio-nsk:patch-2
PiperOrigin-RevId: 512753220 Change-Id: I3f7ad6c62c738d1d7405c50924b36deac8a9ac85
Diffstat (limited to 'googletest/src')
-rw-r--r--googletest/src/gtest.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/googletest/src/gtest.cc b/googletest/src/gtest.cc
index a60a042c..8195e5f1 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(