From b001a4df3cc6f0dc7771c37b7e2ad57a73daecd5 Mon Sep 17 00:00:00 2001 From: FuzzTest Team Date: Mon, 2 Feb 2026 07:15:01 -0800 Subject: [PATCH] No public description PiperOrigin-RevId: 864342897 --- fuzztest/internal/googletest_adaptor.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fuzztest/internal/googletest_adaptor.h b/fuzztest/internal/googletest_adaptor.h index 98e8a8a4..80bd405d 100644 --- a/fuzztest/internal/googletest_adaptor.h +++ b/fuzztest/internal/googletest_adaptor.h @@ -51,7 +51,8 @@ class GTest_TestAdaptor : public ::testing::Test { if (Runtime::instance().run_mode() == RunMode::kUnitTest) { // In "bug reproduction" mode, sometimes we need to reproduce multiple // bugs, i.e., run multiple tests that lead to a crash. -#if defined(GTEST_HAS_DEATH_TEST) && !defined(FUZZTEST_USE_CENTIPEDE) +#if defined(GTEST_HAS_DEATH_TEST) + const bool needs_subprocess = configuration_.crashing_input_to_reproduce.has_value() && (!configuration_.replay_in_single_process || @@ -59,6 +60,7 @@ class GTest_TestAdaptor : public ::testing::Test { // the subprocess there's only one test to run. testing::internal::InDeathTestChild()); #else + const bool needs_subprocess = false; #endif if (needs_subprocess) {