Skip to content

Commit

Permalink
Do not throttle crash reporting when running with FuzzTest.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 722741758
  • Loading branch information
xinhaoyuan authored and copybara-github committed Feb 3, 2025
1 parent 1752ee0 commit 0961238
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions centipede/environment.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <cmath>
#include <cstddef>
#include <cstdint>
#include <limits>
#include <string>
#include <system_error> // NOLINT
#include <vector>
Expand Down Expand Up @@ -238,6 +239,10 @@ void Environment::ReadKnobsFileIfSpecified() {

void Environment::UpdateWithTargetConfig(
const fuzztest::internal::Configuration &config) {
// Always report crashes when running with FuzzTest. Crash deduplication will
// be performed after reporting.
max_num_crash_reports =
std::numeric_limits<decltype(max_num_crash_reports)>::max();
if (config.jobs != 0) {
CHECK(j == Default().j || j == config.jobs)
<< "Value for --j is inconsistent with the value for jobs in the "
Expand Down

0 comments on commit 0961238

Please sign in to comment.