From fdbb07283a0ca801ba37eb0328e3dcb6ce045f93 Mon Sep 17 00:00:00 2001 From: Paul Cruz Date: Mon, 19 Jun 2017 17:29:15 -0700 Subject: [PATCH] added test to runTestMode --- tests/decodecorpus.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/decodecorpus.c b/tests/decodecorpus.c index 14d3f235..8e2cefb4 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);