mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
scripted-diff: Use new FUZZ_TARGET macro everywhere
-BEGIN VERIFY SCRIPT-
ren() { sed --regexp-extended -i "s|$1|$2|g" $(git grep -l --extended-regexp "$1"); }
# Replace FUZZ_TARGET_INIT
ren 'FUZZ_TARGET_INIT\((.+), (.+)\)' 'FUZZ_TARGET(\1, .init = \2)'
# Delete unused FUZZ_TARGET_INIT
sed -i -e '37,39d' src/test/fuzz/fuzz.h
-END VERIFY SCRIPT-
This commit is contained in:
parent
fa36ad8b09
commit
fa6dfaaf45
46 changed files with 54 additions and 57 deletions
|
|
@ -27,7 +27,7 @@ std::string GetArgumentName(const std::string& name)
|
|||
return name.substr(0, idx);
|
||||
}
|
||||
|
||||
FUZZ_TARGET_INIT(system, initialize_system)
|
||||
FUZZ_TARGET(system, .init = initialize_system)
|
||||
{
|
||||
FuzzedDataProvider fuzzed_data_provider(buffer.data(), buffer.size());
|
||||
ArgsManager args_manager{};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue