1
0
mirror of https://github.com/facebook/zstd.git synced 2025-12-24 17:21:03 +03:00
* fix issue #3144

* add test case for verbose-wlog

Co-authored-by: zengyijing <yijingzeng@fb.com>
This commit is contained in:
zengyijing
2022-08-04 16:51:14 -04:00
committed by GitHub
parent e818fa8eb0
commit d0dcc9d775
4 changed files with 23 additions and 0 deletions

View File

@@ -1051,6 +1051,8 @@ int main(int argCount, const char* argv[])
/* Invalid character following --long */
badusage(programName);
CLEAN_RETURN(1);
} else {
ldmWindowLog = g_defaultMaxWindowLog;
}
/* Only set windowLog if not already set by --zstd */
if (compressionParams.windowLog == 0)

View File

@@ -0,0 +1,11 @@
#!/bin/sh
set -e
. "$COMMON/platform.sh"
zstd < file -vv -19 -o file.19.zst
zstd -vv -l file.19.zst
zstd < file -vv -19 --long -o file.19.long.zst
zstd -vv -l file.19.long.zst

View File

@@ -0,0 +1,5 @@
...
*wlog=23*
...
*wlog=27*
...

View File

@@ -0,0 +1,5 @@
...
*Window Size: 8388608 B*
...
*Window Size: 134217728 B*
...