summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2020-09-17 21:43:02 (GMT)
committerYann Collet <cyan@fb.com>2020-09-17 21:43:02 (GMT)
commit10d2e1c69465ac51d210909ca7a447a1397736a1 (patch)
treef75df86ec7e5805c0340d18c7e9621b57d130b30 /tests
parent43bbb7decc8296078ce191b06b0af494ddad0535 (diff)
downloadlz4-10d2e1c69465ac51d210909ca7a447a1397736a1.zip
lz4-10d2e1c69465ac51d210909ca7a447a1397736a1.tar.gz
lz4-10d2e1c69465ac51d210909ca7a447a1397736a1.tar.bz2
fixed lz4frame with blocks of size 1
properly track history
Diffstat (limited to 'tests')
-rw-r--r--tests/frametest.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/frametest.c b/tests/frametest.c
index 236a98c..54c7fd2 100644
--- a/tests/frametest.c
+++ b/tests/frametest.c
@@ -785,7 +785,7 @@ typedef enum { o_contiguous, o_noncontiguous, o_overwrite } o_scenario_e;
static void locateBuffDiff(const void* buff1, const void* buff2, size_t size, o_scenario_e o_scenario)
{
- if (displayLevel >= 5) {
+ if (displayLevel >= 2) {
size_t p=0;
const BYTE* b1=(const BYTE*)buff1;
const BYTE* b2=(const BYTE*)buff2;
@@ -862,8 +862,10 @@ size_t test_lz4f_decompression_wBuffers(
"Decompression overwrites beyond assigned dst size",
op[oSizeMax], mark);
}
- if (LZ4F_getErrorCode(moreToFlush) == LZ4F_ERROR_contentChecksum_invalid)
+ if (LZ4F_getErrorCode(moreToFlush) == LZ4F_ERROR_contentChecksum_invalid) {
+ DISPLAYLEVEL(2, "checksum error detected \n");
locateBuffDiff(srcRef, dst, decompressedSize, o_scenario);
+ }
if (LZ4F_isError(moreToFlush)) return moreToFlush;
XXH64_update(&xxh64, op, oSize);