Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion fuzztest/internal/googletest_adaptor.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,16 @@ 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 ||
// EXPECT_EXIT is required in the death-test subprocess, but in
// the subprocess there's only one test to run.
testing::internal::InDeathTestChild());
#else

const bool needs_subprocess = false;
#endif
if (needs_subprocess) {
Expand Down
Loading