mirror of
https://github.com/facebook/zstd.git
synced 2025-07-30 22:23:13 +03:00
Fix Flaky Test
This test depended on `_extDict` and `_noDict` compressing identically, which is not a guarantee we make, AFAIK.
This commit is contained in:
@ -906,7 +906,7 @@ static int basicUnitTests(U32 seed, double compressibility)
|
||||
in.pos = 0;
|
||||
in.size = CNBufferSize - in.size;
|
||||
CHECK(!(ZSTD_compressStream2(cctx, &out, &in, ZSTD_e_end) == 0), "Not finished");
|
||||
CHECK_Z(ZSTD_decompress(decodedBuffer, CNBufferSize, compressedBuffer, cSize));
|
||||
CHECK_Z(ZSTD_decompress(decodedBuffer, CNBufferSize, compressedBuffer, out.pos));
|
||||
DISPLAYLEVEL(3, "OK \n");
|
||||
|
||||
DISPLAYLEVEL(3, "test%3i : ZSTD_compressStream2() ZSTD_c_stableOutBuffer modify buffer : ", testNb++);
|
||||
|
Reference in New Issue
Block a user