aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-11-14 17:30:32 +0100
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-11-14 17:41:49 +0100
commitfab5cb9066366d93531f34e649a10addf44cd2ca (patch)
tree59e9e76e085d1853d7b48b0356ae00dd0019a086 /src/test
parentfa5388fad3e87d56395bfe2467d2d6448a8f2e40 (diff)
downloadbitcoin-fab5cb9066366d93531f34e649a10addf44cd2ca.tar.xz
fuzz: Reduce LIMITED_WHILE limit for file fuzzing
A higher limit is not needed, and only leads to timeouts, see for example the buffered_file one in https://github.com/bitcoin/bitcoin/issues/28812#issue-1981386486
Diffstat (limited to 'src/test')
-rw-r--r--src/test/fuzz/autofile.cpp3
-rw-r--r--src/test/fuzz/buffered_file.cpp3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/test/fuzz/autofile.cpp b/src/test/fuzz/autofile.cpp
index e96190b9db..bf7119b761 100644
--- a/src/test/fuzz/autofile.cpp
+++ b/src/test/fuzz/autofile.cpp
@@ -21,7 +21,8 @@ FUZZ_TARGET(autofile)
AutoFile auto_file{
fuzzed_file_provider.open(),
};
- LIMITED_WHILE(fuzzed_data_provider.ConsumeBool(), 10000) {
+ LIMITED_WHILE(fuzzed_data_provider.ConsumeBool(), 100)
+ {
CallOneOf(
fuzzed_data_provider,
[&] {
diff --git a/src/test/fuzz/buffered_file.cpp b/src/test/fuzz/buffered_file.cpp
index 621486930f..e345aa301c 100644
--- a/src/test/fuzz/buffered_file.cpp
+++ b/src/test/fuzz/buffered_file.cpp
@@ -26,7 +26,8 @@ FUZZ_TARGET(buffered_file)
}
if (opt_buffered_file && !fuzzed_file.IsNull()) {
bool setpos_fail = false;
- LIMITED_WHILE(fuzzed_data_provider.ConsumeBool(), 10000) {
+ LIMITED_WHILE(fuzzed_data_provider.ConsumeBool(), 100)
+ {
CallOneOf(
fuzzed_data_provider,
[&] {