aboutsummaryrefslogtreecommitdiff
path: root/tests/fuzz/fuzzer.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-05-15 17:17:24 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-05-15 17:18:27 +0000
commit81773f55a430e75fe5c6bee355ca518f16286dd1 (patch)
treefc7ac88a76cc6a06cf5310ef2a353be92d6bb931 /tests/fuzz/fuzzer.cpp
parentMerge pull request #6510 (diff)
downloadmonero-81773f55a430e75fe5c6bee355ca518f16286dd1.tar.xz
fuzz_tests: refactor and add OSS-Fuzz compatibility
Diffstat (limited to '')
-rw-r--r--tests/fuzz/fuzzer.cpp4
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