From: Yann Collet Date: Thu, 16 Jun 2016 09:32:57 +0000 (+0200) Subject: fuzzer : tests with high id are run without need to change finalTestNb X-Git-Tag: v0.7.0^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=803c05ec7e9890d4d4d4dc87e734fc9279825b12;p=thirdparty%2Fzstd.git fuzzer : tests with high id are run without need to change finalTestNb --- diff --git a/programs/fuzzer.c b/programs/fuzzer.c index 480fd3072..42d3640da 100644 --- a/programs/fuzzer.c +++ b/programs/fuzzer.c @@ -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) diff --git a/tests/test-zstd-versions.py b/tests/test-zstd-versions.py index 437cd4c01..34b584087 100755 --- a/tests/test-zstd-versions.py +++ b/tests/test-zstd-versions.py @@ -130,7 +130,7 @@ if __name__ == '__main__': # Build all release zstd for tag in tags: os.chdir(base_dir) - dst_zstd = '{}/zstd.{}' .format(tmp_dir, tag) # /path/to/zstd/tests/versionsTest/zstd. + dst_zstd = '{}/zstd.{}'.format(tmp_dir, tag) # /path/to/zstd/tests/versionsTest/zstd. if not os.path.isfile(dst_zstd) or tag == head: if tag != head: r_dir = '{}/{}'.format(tmp_dir, tag) # /path/to/zstd/tests/versionsTest/