mirror of
https://github.com/facebook/zstd.git
synced 2025-08-01 09:47:01 +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.pos = 0;
|
||||||
in.size = CNBufferSize - in.size;
|
in.size = CNBufferSize - in.size;
|
||||||
CHECK(!(ZSTD_compressStream2(cctx, &out, &in, ZSTD_e_end) == 0), "Not finished");
|
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, "OK \n");
|
||||||
|
|
||||||
DISPLAYLEVEL(3, "test%3i : ZSTD_compressStream2() ZSTD_c_stableOutBuffer modify buffer : ", testNb++);
|
DISPLAYLEVEL(3, "test%3i : ZSTD_compressStream2() ZSTD_c_stableOutBuffer modify buffer : ", testNb++);
|
||||||
|
Reference in New Issue
Block a user