Skip to content

Commit

Permalink
Update the default time_limit_per_input to 60 seconds.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 695444491
  • Loading branch information
FuzzTest Team authored and copybara-github committed Nov 11, 2024
1 parent f0969ce commit 4aa4462
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fuzztest/init_fuzztest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ FUZZTEST_DEFINE_FLAG(size_t, rss_limit_mb, 0,
"when the limit is exceeded. 0 indicates no limit.");

FUZZTEST_DEFINE_FLAG(
absl::Duration, time_limit_per_input, absl::Seconds(60),
absl::Duration, time_limit_per_input, absl::InfiniteDuration(),
"The time limit of the property-function: A timeout bug will be reported "
"for an input if the execution of the property-function with the input "
"takes longer than this time limit.");
Expand Down
2 changes: 1 addition & 1 deletion fuzztest/internal/configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ struct Configuration {
// RSS limit in bytes. Zero indicates no limit.
size_t rss_limit = 0;
// Time limit per test input.
absl::Duration time_limit_per_input = absl::Seconds(60);
absl::Duration time_limit_per_input = absl::InfiniteDuration();
// Fuzzing or corpus replay time limit.
absl::Duration time_limit = absl::InfiniteDuration();
// Whether the time limit is for each test or for all tests in the binary.
Expand Down

0 comments on commit 4aa4462

Please sign in to comment.