Redirect failed test result to INTOVOID and update comment about parsing fast command

This commit is contained in:
Jennifer Liu 2018-06-27 16:27:45 -07:00
parent aef8486fee
commit 1ab57a7ce1
2 changed files with 2 additions and 2 deletions

View 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;

View File

@ -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"