]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Remove unnecessary test case
authorNick Magerko <nmagerko@fb.com>
Tue, 20 Aug 2019 00:20:46 +0000 (17:20 -0700)
committerNick Magerko <nmagerko@fb.com>
Tue, 20 Aug 2019 00:20:46 +0000 (17:20 -0700)
tests/zstreamtest.c

index b0e5d827a63d9df70f17a70188cbcc3a28c16495..6fe177cbe107d99a0b06064156660733b2d685f6 100644 (file)
@@ -1151,21 +1151,6 @@ static int basicUnitTests(U32 seed, double compressibility)
     }
     DISPLAYLEVEL(3, "OK \n");
 
-    DISPLAYLEVEL(3, "test%3i : ZSTD_c_srcSizeHint provides hint about size of stream : ", testNb++);
-    {
-      CHECK_Z( ZSTD_initCStream(zc, 1 /* cLevel */) );
-      outBuff.dst = (char*)(compressedBuffer);
-      outBuff.size = compressedBufferSize;
-      outBuff.pos = 0;
-      inBuff.src = CNBuffer;
-      inBuff.size = CNBufferSize;
-      inBuff.pos = 0;
-      CHECK_Z( ZSTD_compressStream(zc, &outBuff, &inBuff) );
-      if (inBuff.pos != inBuff.size) goto _output_error;   /* entire input should be consumed */
-      { size_t const r = ZSTD_endStream(zc, &outBuff);
-        if (r != 0) goto _output_error; }  /* error, or some data not flushed */
-    }
-
     /* Overlen overwriting window data bug */
     DISPLAYLEVEL(3, "test%3i : wildcopy doesn't overwrite potential match data : ", testNb++);
     {   /* This test has a window size of 1024 bytes and consists of 3 blocks: