summaryrefslogtreecommitdiffstats
path: root/tests/fuzzer.c
diff options
context:
space:
mode:
authortest4973 <Kdo4973@hotmail.com>2018-04-12 14:25:40 (GMT)
committertest4973 <Kdo4973@hotmail.com>2018-04-12 20:35:19 (GMT)
commit8af32ce6f7109ecf5cd7d73527e0aba3a63b55e5 (patch)
treed55f2c85ea5ebf574ec894081c668636dea650a9 /tests/fuzzer.c
parent1838803948ceaf211b9e79fb405ef9b7340762ce (diff)
downloadlz4-8af32ce6f7109ecf5cd7d73527e0aba3a63b55e5.zip
lz4-8af32ce6f7109ecf5cd7d73527e0aba3a63b55e5.tar.gz
lz4-8af32ce6f7109ecf5cd7d73527e0aba3a63b55e5.tar.bz2
modified a few traces for debug
Diffstat (limited to 'tests/fuzzer.c')
-rw-r--r--tests/fuzzer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/fuzzer.c b/tests/fuzzer.c
index 2e3ee92..a650277 100644
--- a/tests/fuzzer.c
+++ b/tests/fuzzer.c
@@ -632,13 +632,15 @@ static int FUZ_test(U32 seed, U32 nbCycles, const U32 startCycle, const double c
FUZ_CHECKTEST(ret>0, "LZ4_compress_fast_continue using ExtDict should fail : one missing byte for output buffer : %i written, %i buffer", ret, blockContinueCompressedSize);
FUZ_DISPLAYTEST("test LZ4_compress_fast_continue() with dictionary loaded with LZ4_loadDict()");
+ DISPLAYLEVEL(5, " compress %i bytes from buffer(%p) into dst(%p) using dict(%p) of size %i \n", blockSize, block, decodedBuffer, dict, dictSize);
LZ4_loadDict(&LZ4dict, dict, dictSize);
ret = LZ4_compress_fast_continue(&LZ4dict, block, compressedBuffer, blockSize, blockContinueCompressedSize, 1);
FUZ_CHECKTEST(ret!=blockContinueCompressedSize, "LZ4_compress_limitedOutput_compressed size is different (%i != %i)", ret, blockContinueCompressedSize);
FUZ_CHECKTEST(ret<=0, "LZ4_compress_fast_continue should work : enough size available within output buffer");
/* Decompress with dictionary as external */
- FUZ_DISPLAYTEST("test LZ4_decompress_fast_usingDict(): decoding %i bytes, dict(%p) of size %i", blockSize, dict, dictSize);
+ FUZ_DISPLAYTEST("test LZ4_decompress_fast_usingDict() with dictionary as extDict");
+ DISPLAYLEVEL(5, " decoding %i bytes from buffer(%p) using dict(%p) of size %i \n", blockSize, decodedBuffer, dict, dictSize);
decodedBuffer[blockSize] = 0;
ret = LZ4_decompress_fast_usingDict(compressedBuffer, decodedBuffer, blockSize, dict, dictSize);
FUZ_CHECKTEST(ret!=blockContinueCompressedSize, "LZ4_decompress_fast_usingDict did not read all compressed block input");