summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPrzemyslaw Skibinski <inikep@gmail.com>2016-12-27 09:43:07 (GMT)
committerPrzemyslaw Skibinski <inikep@gmail.com>2016-12-27 09:43:07 (GMT)
commitefaa9b7bc72a037bddee530b8dcaefa53c9c999d (patch)
tree2ae32cac8cd397e2d3604d8172d18c61761496fa /tests
parentb22e2bed5e44f2cdacb11cf01d4a15a00bcb76ca (diff)
parent19c0f21b000ababf11cb38e0d6154742f5e1cd83 (diff)
downloadlz4-efaa9b7bc72a037bddee530b8dcaefa53c9c999d.zip
lz4-efaa9b7bc72a037bddee530b8dcaefa53c9c999d.tar.gz
lz4-efaa9b7bc72a037bddee530b8dcaefa53c9c999d.tar.bz2
Merge remote-tracking branch 'refs/remotes/lz4/dev' into dev
# Conflicts: # lib/Makefile
Diffstat (limited to 'tests')
-rw-r--r--tests/frametest.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/frametest.c b/tests/frametest.c
index 869be76..e2e0f86 100644
--- a/tests/frametest.c
+++ b/tests/frametest.c
@@ -186,6 +186,13 @@ int basicTests(U32 seed, double compressibility)
FUZ_fillCompressibleNoiseBuffer(CNBuffer, COMPRESSIBLE_NOISE_LENGTH, compressibility, &randState);
crcOrig = XXH64(CNBuffer, COMPRESSIBLE_NOISE_LENGTH, 1);
+ /* LZ4F_compressBound() : special case : srcSize == 0 */
+ DISPLAYLEVEL(3, "LZ4F_compressBound(0) = ");
+ { size_t const cBound = LZ4F_compressBound(0, NULL);
+ if (cBound < 64 KB) goto _output_error;
+ DISPLAYLEVEL(3, " %u \n", (U32)cBound);
+ }
+
/* Special case : null-content frame */
testSize = 0;
DISPLAYLEVEL(3, "LZ4F_compressFrame, compress null content : \n");