From 1ab57a7ce1dcf09b3fa59bfe51c5bdcb5ba5bdb7 Mon Sep 17 00:00:00 2001 From: Jennifer Liu Date: Wed, 27 Jun 2018 16:27:45 -0700 Subject: [PATCH] Redirect failed test result to INTOVOID and update comment about parsing fast command --- programs/zstdcli.c | 2 +- tests/playTests.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/zstdcli.c b/programs/zstdcli.c index ad473e33..ae8c9cba 100644 --- a/programs/zstdcli.c +++ b/programs/zstdcli.c @@ -561,7 +561,7 @@ int main(int argCount, const char* argv[]) continue; } if (longCommandWArg(&argument, "--fast")) { - /* Parse optional window log */ + /* Parse optional acceleration factor */ if (*argument == '=') { U32 fastLevel; ++argument; diff --git a/tests/playTests.sh b/tests/playTests.sh index 9f30f29e..09a7377f 100755 --- a/tests/playTests.sh +++ b/tests/playTests.sh @@ -108,7 +108,7 @@ $ECHO "test : --fast aka negative compression levels" $ZSTD --fast -f tmp # == -1 $ZSTD --fast=3 -f tmp # == -3 $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" $ZSTD --fast=9999999999 -f tmp && die "should have refused numeric value" $ECHO "test : compress to stdout"