From: Nick Terrell Date: Fri, 23 Aug 2019 00:27:15 +0000 (-0700) Subject: [fuzz] Add a DEBUGLOG(3) statement to print file X-Git-Tag: v1.4.4~1^2~73^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1745%2Fhead;p=thirdparty%2Fzstd.git [fuzz] Add a DEBUGLOG(3) statement to print file Enable it by building with this command: ``` ./fuzz.py build all --debug 3 ``` --- diff --git a/tests/fuzz/fuzz_helpers.h b/tests/fuzz/fuzz_helpers.h index 0cf79d0d7..0ee85fc7e 100644 --- a/tests/fuzz/fuzz_helpers.h +++ b/tests/fuzz/fuzz_helpers.h @@ -14,6 +14,7 @@ #ifndef FUZZ_HELPERS_H #define FUZZ_HELPERS_H +#include "debug.h" #include "fuzz.h" #include "xxhash.h" #include "zstd.h" diff --git a/tests/fuzz/regression_driver.c b/tests/fuzz/regression_driver.c index 658c685f4..e3ebcd5ce 100644 --- a/tests/fuzz/regression_driver.c +++ b/tests/fuzz/regression_driver.c @@ -36,6 +36,7 @@ int main(int argc, char const **argv) { fprintf(stderr, "WARNING: No files passed to %s\n", argv[0]); for (i = 0; i < numFiles; ++i) { char const *fileName = files[i]; + DEBUGLOG(3, "Running %s", fileName); size_t const fileSize = UTIL_getFileSize(fileName); size_t readSize; FILE *file;