From: Yann Collet Date: Thu, 11 Jan 2018 21:25:08 +0000 (-0800) Subject: Merge branch 'dev' into dubtlazy X-Git-Tag: v1.3.4~1^2~87^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cacf47cbee5fa05a45fc6697deb325f99c74ea17;p=thirdparty%2Fzstd.git Merge branch 'dev' into dubtlazy and fixed conflicts --- cacf47cbee5fa05a45fc6697deb325f99c74ea17 diff --cc tests/fuzzer.c index c599a15de,024a583ba..3206d6e11 --- a/tests/fuzzer.c +++ b/tests/fuzzer.c @@@ -63,13 -63,20 +63,20 @@@ static UTIL_time_t g_displayClock = UTI #define DISPLAYUPDATE(l, ...) if (g_displayLevel>=l) { \ if ((UTIL_clockSpanMicro(g_displayClock) > g_refreshRate) || (g_displayLevel>=4)) \ { g_displayClock = UTIL_getTime(); DISPLAY(__VA_ARGS__); \ - if (g_displayLevel>=4) fflush(stderr); } } + if (g_displayLevel>=4) fflush(stdout); } } - /*-******************************************************* - * Fuzzer functions - *********************************************************/ + #undef MIN #undef MAX + void FUZ_bug976(void) + { /* these constants shall not depend on MIN() macro */ + assert(ZSTD_HASHLOG_MAX < 31); + assert(ZSTD_CHAINLOG_MAX < 31); + } + + /*-******************************************************* + * Internal functions + *********************************************************/ #define MIN(a,b) ((a)<(b)?(a):(b)) #define MAX(a,b) ((a)>(b)?(a):(b)) @@@ -672,19 -681,29 +680,29 @@@ static int basicUnitTests(U32 seed, dou goto _output_error; } - DISPLAYLEVEL(4, "test%3i : dictBuilder on cyclic data : ", testNb++); ++ DISPLAYLEVEL(3, "test%3i : dictBuilder on cyclic data : ", testNb++); + assert(compressedBufferSize >= totalSampleSize); + { U32 u; for (u=0; u