diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-05-15 17:17:24 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-05-15 17:18:27 +0000 |
| commit | 81773f55a430e75fe5c6bee355ca518f16286dd1 (patch) | |
| tree | fc7ac88a76cc6a06cf5310ef2a353be92d6bb931 /tests/fuzz/fuzzer.cpp | |
| parent | 77a008f71454ce4dd4bce033bc0319a49e2cec51 (diff) | |
| download | monzero-core-81773f55a430e75fe5c6bee355ca518f16286dd1.tar.gz monzero-core-81773f55a430e75fe5c6bee355ca518f16286dd1.tar.xz monzero-core-81773f55a430e75fe5c6bee355ca518f16286dd1.zip | |
fuzz_tests: refactor and add OSS-Fuzz compatibility
Diffstat (limited to 'tests/fuzz/fuzzer.cpp')
| -rw-r--r-- | tests/fuzz/fuzzer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/fuzz/fuzzer.cpp b/tests/fuzz/fuzzer.cpp index 24db5ee05..0d2366263 100644 --- a/tests/fuzz/fuzzer.cpp +++ b/tests/fuzz/fuzzer.cpp @@ -33,6 +33,8 @@ #include "common/util.h" #include "fuzzer.h" +#ifndef OSSFUZZ + #if (!defined(__clang__) || (__clang__ < 5)) static int __AFL_LOOP(int) { @@ -74,3 +76,5 @@ int run_fuzzer(int argc, const char **argv, Fuzzer &fuzzer) CATCH_ENTRY_L0("run_fuzzer", 1); } + +#endif |
