From: Paul Cruz Date: Tue, 20 Jun 2017 00:29:15 +0000 (-0700) Subject: added test to runTestMode X-Git-Tag: v1.3.0~1^2~15^2~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fdbb07283a0ca801ba37eb0328e3dcb6ce045f93;p=thirdparty%2Fzstd.git added test to runTestMode --- diff --git a/tests/decodecorpus.c b/tests/decodecorpus.c index 14d3f2358..8e2cefb4b 100644 --- a/tests/decodecorpus.c +++ b/tests/decodecorpus.c @@ -1386,6 +1386,14 @@ static int runTestMode(U32 seed, unsigned numFiles, unsigned const testDurationS return 1; } } + { + size_t const dictSize = RAND(&seed); + size_t const r = testDecodeWithDict(seed, dictSize); + if (ZSTD_isError(r)) { + DISPLAY("Error in dictionary mode on test seed %u: %s\n", seed+fnum, ZSTD_getErrorName(r)); + return 1; + } + } } DISPLAY("\r%u tests completed: ", fnum);