From: shakeelrao Date: Fri, 15 Mar 2019 12:13:55 +0000 (-0700) Subject: Add static linking to legacy tests X-Git-Tag: v1.4.0^2~27^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1547%2Fhead;p=thirdparty%2Fzstd.git Add static linking to legacy tests --- diff --git a/tests/legacy.c b/tests/legacy.c index 6da71227f..e660b9cc6 100644 --- a/tests/legacy.c +++ b/tests/legacy.c @@ -16,10 +16,11 @@ /*=========================================== * Dependencies *==========================================*/ -#include /* size_t */ -#include /* malloc, free */ -#include /* fprintf */ -#include /* strlen */ +#include /* size_t */ +#include /* malloc, free */ +#include /* fprintf */ +#include /* strlen */ +#define ZSTD_STATIC_LINKING_ONLY /* ZSTD_decompressBound */ #include "zstd.h" #include "zstd_errors.h" @@ -136,10 +137,6 @@ static int testFrameDecoding(void) DISPLAY("ERROR: ZSTD_decompressBound: Expected to receive ZSTD_CONTENTSIZE_ERROR\n"); return 1; } - if (ZSTD_findFrameCompressedSize(COMPRESSED) != COMPRESSED_SIZE) { - DISPLAY("ERROR: ZSTD_findFrameCompressedSize: Expected to receive %d\n", COMPRESSED_SIZE); - return 1; - } DISPLAY("Frame Decoding OK\n"); return 0; }