aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/test/fuzz/wallet_bdb_parser.cpp
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2024-05-24 14:19:44 +0200
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2024-05-24 14:21:30 +0200
commitfac72985292b516919a216d9a78cf84418cd7f96 (patch)
tree1888304ef2225b65bb1ceb45dd1c455aad3123c9 /src/wallet/test/fuzz/wallet_bdb_parser.cpp
parent413844f1c2a3d8f7cfef822f348f26df488b03c7 (diff)
downloadbitcoin-fac72985292b516919a216d9a78cf84418cd7f96.tar.xz
fuzz: Fix wallet_bdb_parser stdlib error matching
Diffstat (limited to 'src/wallet/test/fuzz/wallet_bdb_parser.cpp')
-rw-r--r--src/wallet/test/fuzz/wallet_bdb_parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/test/fuzz/wallet_bdb_parser.cpp b/src/wallet/test/fuzz/wallet_bdb_parser.cpp
index 24ef75f791..23e6c53af4 100644
--- a/src/wallet/test/fuzz/wallet_bdb_parser.cpp
+++ b/src/wallet/test/fuzz/wallet_bdb_parser.cpp
@@ -61,8 +61,8 @@ FUZZ_TARGET(wallet_bdb_parser, .init = initialize_wallet_bdb_parser)
#ifdef USE_BDB
bdb_ro_err = true;
#endif
- if (error.original == "AutoFile::ignore: end of file: iostream error" ||
- error.original == "AutoFile::read: end of file: iostream error" ||
+ if (error.original.starts_with("AutoFile::ignore: end of file") ||
+ error.original.starts_with("AutoFile::read: end of file") ||
error.original == "Not a BDB file" ||
error.original == "Unsupported BDB data file version number" ||
error.original == "Unexpected page type, should be 9 (BTree Metadata)" ||