added test to runTestMode

This commit is contained in:
Paul Cruz 2017-06-19 17:29:15 -07:00
parent bdec7b8ce7
commit fdbb07283a

View File

@ -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);