Fix new typos found by codespell
This commit is contained in:
@@ -52,7 +52,7 @@ extern "C" {
|
||||
size_t FUZZ_seqProdSetup(void);
|
||||
|
||||
/* The fuzzer will call this function after each test-case. It should free
|
||||
* resources aquired by FUZZ_seqProdSetup() to prevent leaks across test-cases.
|
||||
* resources acquired by FUZZ_seqProdSetup() to prevent leaks across test-cases.
|
||||
*
|
||||
* The fuzzer will assert() that the return value is zero. To signal an error,
|
||||
* please return a non-zero value. */
|
||||
@@ -72,7 +72,7 @@ size_t FUZZ_seqProdTearDown(void);
|
||||
void* FUZZ_createSeqProdState(void);
|
||||
|
||||
/* The fuzzer will call this function after each test-case. It should free any
|
||||
* resources aquired by FUZZ_createSeqProdState().
|
||||
* resources acquired by FUZZ_createSeqProdState().
|
||||
*
|
||||
* The fuzzer will assert() that the return value is zero. To signal an error,
|
||||
* please return a non-zero value. */
|
||||
|
||||
+4
-4
@@ -376,7 +376,7 @@ static int threadPoolTests(void) {
|
||||
|
||||
RDG_genBuffer(CNBuffer, CNBuffSize, 0.5, 0.5, 0);
|
||||
|
||||
DISPLAYLEVEL(3, "thread pool test : threadPool re-use roundtrips: ");
|
||||
DISPLAYLEVEL(3, "thread pool test : threadPool reuse roundtrips: ");
|
||||
{
|
||||
ZSTD_CCtx* cctx = ZSTD_createCCtx();
|
||||
ZSTD_threadPool* pool = ZSTD_createThreadPool(kPoolNumThreads);
|
||||
@@ -1525,14 +1525,14 @@ static int basicUnitTests(U32 const seed, double compressibility)
|
||||
}
|
||||
DISPLAYLEVEL(3, "OK \n");
|
||||
|
||||
DISPLAYLEVEL(3, "test%3d : re-use CCtx with expanding block size : ", testNb++);
|
||||
DISPLAYLEVEL(3, "test%3d : reuse CCtx with expanding block size : ", testNb++);
|
||||
{ ZSTD_CCtx* const cctx = ZSTD_createCCtx();
|
||||
ZSTD_parameters const params = ZSTD_getParams(1, ZSTD_CONTENTSIZE_UNKNOWN, 0);
|
||||
assert(params.fParams.contentSizeFlag == 1); /* block size will be adapted if pledgedSrcSize is enabled */
|
||||
CHECK_Z( ZSTD_compressBegin_advanced(cctx, NULL, 0, params, 1 /*pledgedSrcSize*/) );
|
||||
CHECK_Z( ZSTD_compressEnd(cctx, compressedBuffer, compressedBufferSize, CNBuffer, 1) ); /* creates a block size of 1 */
|
||||
|
||||
CHECK_Z( ZSTD_compressBegin_advanced(cctx, NULL, 0, params, ZSTD_CONTENTSIZE_UNKNOWN) ); /* re-use same parameters */
|
||||
CHECK_Z( ZSTD_compressBegin_advanced(cctx, NULL, 0, params, ZSTD_CONTENTSIZE_UNKNOWN) ); /* reuse same parameters */
|
||||
{ size_t const inSize = 2* 128 KB;
|
||||
size_t const outSize = ZSTD_compressBound(inSize);
|
||||
CHECK_Z( ZSTD_compressEnd(cctx, compressedBuffer, outSize, CNBuffer, inSize) );
|
||||
@@ -1827,7 +1827,7 @@ static int basicUnitTests(U32 const seed, double compressibility)
|
||||
params.cParams.windowLog = ZSTD_WINDOWLOG_MAX;
|
||||
for (cnb = 0; cnb < nbCompressions; ++cnb) {
|
||||
DISPLAYLEVEL(6, "run %zu / %zu \n", cnb, nbCompressions);
|
||||
CHECK_Z( ZSTD_compressBegin_advanced(cctx, NULL, 0, params, ZSTD_CONTENTSIZE_UNKNOWN) ); /* re-use same parameters */
|
||||
CHECK_Z( ZSTD_compressBegin_advanced(cctx, NULL, 0, params, ZSTD_CONTENTSIZE_UNKNOWN) ); /* reuse same parameters */
|
||||
CHECK_Z( ZSTD_compressEnd(cctx, compressedBuffer, compressedBufferSize, CNBuffer, CNBuffSize) );
|
||||
}
|
||||
ZSTD_freeCCtx(cctx);
|
||||
|
||||
+4
-4
@@ -408,8 +408,8 @@ static int basicUnitTests(U32 seed, double compressibility, int bigTests)
|
||||
if (inBuff.pos != inBuff.size) goto _output_error; /* should have read the entire frame */
|
||||
DISPLAYLEVEL(3, "OK \n");
|
||||
|
||||
/* Re-use without init */
|
||||
DISPLAYLEVEL(3, "test%3i : decompress again without init (re-use previous settings): ", testNb++);
|
||||
/* Reuse without init */
|
||||
DISPLAYLEVEL(3, "test%3i : decompress again without init (reuse previous settings): ", testNb++);
|
||||
outBuff.pos = 0;
|
||||
{ size_t const remaining = ZSTD_decompressStream(zd, &outBuff, &inBuff2);
|
||||
if (remaining != 0) goto _output_error; } /* should reach end of frame == 0; otherwise, some data left, or an error */
|
||||
@@ -653,8 +653,8 @@ static int basicUnitTests(U32 seed, double compressibility, int bigTests)
|
||||
DISPLAYLEVEL(3, "OK (error detected : %s) \n", ZSTD_getErrorName(r));
|
||||
} }
|
||||
|
||||
/* Compression state re-use scenario */
|
||||
DISPLAYLEVEL(3, "test%3i : context re-use : ", testNb++);
|
||||
/* Compression state reuse scenario */
|
||||
DISPLAYLEVEL(3, "test%3i : context reuse : ", testNb++);
|
||||
ZSTD_freeCStream(zc);
|
||||
zc = ZSTD_createCStream();
|
||||
if (zc==NULL) goto _output_error; /* memory allocation issue */
|
||||
|
||||
Reference in New Issue
Block a user