mirror of
https://github.com/facebook/zstd.git
synced 2025-07-30 22:23:13 +03:00
Add legacy support to decompressBound
This commit is contained in:
@ -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