added gzip tests

also : made sure zstd --format=gzip -V
would fail if gzip compatibility is not supported
This commit is contained in:
Yann Collet
2017-03-01 16:49:20 -08:00
parent 76f0494089
commit c1c040eae1
3 changed files with 32 additions and 8 deletions
+1
View File
@@ -581,6 +581,7 @@ int BMK_benchFiles(const char** fileNamesTable, unsigned nbFiles, const char* di
{
double const compressibility = (double)g_compressibilityDefault / 100;
if (cLevel < 1) cLevel = 1; /* minimum compression level */
if (cLevel > ZSTD_maxCLevel()) cLevel = ZSTD_maxCLevel();
if (cLevelLast > ZSTD_maxCLevel()) cLevelLast = ZSTD_maxCLevel();
if (cLevelLast < cLevel) cLevelLast = cLevel;