From: Sean Purcell Date: Thu, 9 Feb 2017 20:27:32 +0000 (-0800) Subject: Fix failing unit test X-Git-Tag: v1.1.4~1^2~69^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84b37cc1f1f0d13a3e137a6b871921ff9f0f4d80;p=thirdparty%2Fzstd.git Fix failing unit test --- diff --git a/tests/fuzzer.c b/tests/fuzzer.c index 4239af455..603c74c2a 100644 --- a/tests/fuzzer.c +++ b/tests/fuzzer.c @@ -220,7 +220,7 @@ static int basicUnitTests(U32 seed, double compressibility) DISPLAYLEVEL(4, "test%3i : load dictionary into context : ", testNb++); CHECK( ZSTD_compressBegin_usingDict(ctxOrig, CNBuffer, dictSize, 2) ); - CHECK( ZSTD_copyCCtx(ctxDuplicated, ctxOrig, CNBuffSize - dictSize) ); + CHECK( ZSTD_copyCCtx(ctxDuplicated, ctxOrig, 0) ); /* Begin_usingDict implies unknown srcSize, so match that */ DISPLAYLEVEL(4, "OK \n"); DISPLAYLEVEL(4, "test%3i : compress with flat dictionary : ", testNb++);