aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz/fuzz.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2019-09-27 11:53:34 -0400
committerMarcoFalke <falke.marco@gmail.com>2020-01-02 18:00:05 -0500
commitfa37e0a68bea65979f9f8f2e5258fe608acf2bdf (patch)
tree8deac6542c23efb0dad232c4c30bc88c68187e71 /src/test/fuzz/fuzz.cpp
parent17e14ac92fced92457945859463eda5d435bdd49 (diff)
test: Show debug log on unit test failure
Diffstat (limited to 'src/test/fuzz/fuzz.cpp')
-rw-r--r--src/test/fuzz/fuzz.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/fuzz/fuzz.cpp b/src/test/fuzz/fuzz.cpp
index da4e623e98..a6ab620e21 100644
--- a/src/test/fuzz/fuzz.cpp
+++ b/src/test/fuzz/fuzz.cpp
@@ -4,10 +4,14 @@
#include <test/fuzz/fuzz.h>
+#include <test/util/setup_common.h>
+
#include <cstdint>
#include <unistd.h>
#include <vector>
+const std::function<void(const std::string&)> G_TEST_LOG_FUN{};
+
static bool read_stdin(std::vector<uint8_t>& data)
{
uint8_t buffer[1024];