]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Redirect failed test result to INTOVOID and update comment about parsing fast command 1214/head
authorJennifer Liu <jenniferliu620@fb.com>
Wed, 27 Jun 2018 23:27:45 +0000 (16:27 -0700)
committerJennifer Liu <jenniferliu620@fb.com>
Wed, 27 Jun 2018 23:27:45 +0000 (16:27 -0700)
programs/zstdcli.c
tests/playTests.sh

index ad473e330627074bd6feef043712dd903b678946..ae8c9cba9aa8034aa758c4f1a1d6db27774221b6 100644 (file)
@@ -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;
index 9f30f29ec13173ebc4542928eb8d828d6c5a5637..09a7377f293b16654abc50c77073bde127650ee1 100755 (executable)
@@ -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"