Let Centipede exit with EXIT_SUCCESS on early termination. This is to be consistent with the legacy engine behavior. PiperOrigin-RevId: 888275319
diff --git a/fuzztest/internal/centipede_adaptor.cc b/fuzztest/internal/centipede_adaptor.cc index 71df38d..5ac3882 100644 --- a/fuzztest/internal/centipede_adaptor.cc +++ b/fuzztest/internal/centipede_adaptor.cc
@@ -333,7 +333,7 @@ sigemptyset(&new_sigact.sa_mask); new_sigact.sa_handler = [](int signum) { Runtime::instance().SetTerminationRequested(); - RequestEarlyStop(EXIT_FAILURE); + RequestEarlyStop(EXIT_SUCCESS); const int fd = GetStderrFdDup() != -1 ? GetStderrFdDup() : STDERR_FILENO; if (signum == SIGTERM) { @@ -368,8 +368,8 @@ if (Runtime::instance().termination_requested()) { absl::FPrintF(GetStderr(), "Not running Centipede due to termination requested - " - "returning as a failure\n"); - return EXIT_FAILURE; + "returning with success\n"); + return EXIT_SUCCESS; } if (centipede_command.has_value()) { std::string cmdline = "exec 2>&1 ";