mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-09 10:43:19 -05:00
tests: Allow for using non-default fuzzing initialization
This commit is contained in:
parent
c34b88620d
commit
fdef8bbf2f
2 changed files with 4 additions and 2 deletions
|
@ -22,7 +22,9 @@ static bool read_stdin(std::vector<uint8_t>& data)
|
|||
return length == 0;
|
||||
}
|
||||
|
||||
static void initialize()
|
||||
// Default initialization: Override using a non-weak initialize().
|
||||
__attribute__((weak))
|
||||
void initialize()
|
||||
{
|
||||
const static auto verify_handle = MakeUnique<ECCVerifyHandle>();
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#include <stdint.h>
|
||||
#include <vector>
|
||||
|
||||
|
||||
void initialize();
|
||||
void test_one_input(const std::vector<uint8_t>& buffer);
|
||||
|
||||
#endif // BITCOIN_TEST_FUZZ_FUZZ_H
|
||||
|
|
Loading…
Add table
Reference in a new issue