1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-30 22:23:13 +03:00

fuzzer : tests with high id are run without need to change finalTestNb

This commit is contained in:
Yann Collet
2016-06-16 11:32:57 +02:00
parent 80d033fb43
commit 803c05ec7e
2 changed files with 3 additions and 1 deletions

View File

@ -851,6 +851,8 @@ int main(int argc, const char** argv)
DISPLAY("Seed = %u\n", seed);
if (proba!=FUZ_compressibility_default) DISPLAY("Compressibility : %u%%\n", proba);
if (nbTests < testNb) nbTests = testNb;
if (testNb==0)
result = basicUnitTests(0, ((double)proba) / 100); /* constant seed for predictability */
if (!result)