mirror of
https://github.com/facebook/zstd.git
synced 2025-08-07 06:23:00 +03:00
Redirect failed test result to INTOVOID and update comment about parsing fast command
This commit is contained in:
@@ -561,7 +561,7 @@ int main(int argCount, const char* argv[])
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (longCommandWArg(&argument, "--fast")) {
|
if (longCommandWArg(&argument, "--fast")) {
|
||||||
/* Parse optional window log */
|
/* Parse optional acceleration factor */
|
||||||
if (*argument == '=') {
|
if (*argument == '=') {
|
||||||
U32 fastLevel;
|
U32 fastLevel;
|
||||||
++argument;
|
++argument;
|
||||||
|
@@ -108,7 +108,7 @@ $ECHO "test : --fast aka negative compression levels"
|
|||||||
$ZSTD --fast -f tmp # == -1
|
$ZSTD --fast -f tmp # == -1
|
||||||
$ZSTD --fast=3 -f tmp # == -3
|
$ZSTD --fast=3 -f tmp # == -3
|
||||||
$ZSTD --fast=200000 -f tmp # == no compression
|
$ZSTD --fast=200000 -f tmp # == no compression
|
||||||
! $ZSTD -c --fast=0 tmp # should fail
|
! $ZSTD -c --fast=0 tmp > $INTOVOID # should fail
|
||||||
$ECHO "test : too large numeric argument"
|
$ECHO "test : too large numeric argument"
|
||||||
$ZSTD --fast=9999999999 -f tmp && die "should have refused numeric value"
|
$ZSTD --fast=9999999999 -f tmp && die "should have refused numeric value"
|
||||||
$ECHO "test : compress to stdout"
|
$ECHO "test : compress to stdout"
|
||||||
|
Reference in New Issue
Block a user