Add legacy support to decompressBound
This commit is contained in:
1 parent
f52a7d8faa
commit
60796e76b0
18 files changed
+329
-123
No files matched your search
+2
-2
@@ -133,8 +133,8 @@ static int testStreamingAPI(void)
|
||||
|
||||
static int testFrameDecoding(void)
|
||||
{
|
||||
if (ZSTD_decompressBound(COMPRESSED, COMPRESSED_SIZE) != ZSTD_CONTENTSIZE_ERROR) {
|
||||
DISPLAY("ERROR: ZSTD_decompressBound: Expected to receive ZSTD_CONTENTSIZE_ERROR\n");
|
||||
if (strlen(EXPECTED) > ZSTD_decompressBound(COMPRESSED, COMPRESSED_SIZE)) {
|
||||
DISPLAY("ERROR: ZSTD_decompressBound: decompressed bound too small\n");
|
||||
return 1;
|
||||
}
|
||||
DISPLAY("Frame Decoding OK\n");
|
||||
|
||||
Reference in new issue
Block a user