From fac72985292b516919a216d9a78cf84418cd7f96 Mon Sep 17 00:00:00 2001 From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Date: Fri, 24 May 2024 14:19:44 +0200 Subject: fuzz: Fix wallet_bdb_parser stdlib error matching --- src/wallet/test/fuzz/wallet_bdb_parser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/wallet/test/fuzz/wallet_bdb_parser.cpp') 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)" || -- cgit v1.2.3