]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fuzzer : tests with high id are run without need to change finalTestNb
authorYann Collet <yann.collet.73@gmail.com>
Thu, 16 Jun 2016 09:32:57 +0000 (11:32 +0200)
committerYann Collet <yann.collet.73@gmail.com>
Thu, 16 Jun 2016 09:32:57 +0000 (11:32 +0200)
programs/fuzzer.c
tests/test-zstd-versions.py

index 480fd30724eacd65d03404d3bd0fee39f4ca69c0..42d3640dab36bb27d8c1cf9ba8156f819200994e 100644 (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)
index 437cd4c0126461c80ad3ee55eaf01aec286c5ebc..34b584087d7c448d6a4a6774e8bb42abc5a55a97 100755 (executable)
@@ -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.<TAG>
+        dst_zstd = '{}/zstd.{}'.format(tmp_dir, tag)  # /path/to/zstd/tests/versionsTest/zstd.<TAG>
         if not os.path.isfile(dst_zstd) or tag == head:
             if tag != head:
                 r_dir = '{}/{}'.format(tmp_dir, tag)  # /path/to/zstd/tests/versionsTest/<TAG>