From: shakeelrao Date: Sun, 24 Mar 2019 07:47:13 +0000 (-0700) Subject: Add CLI test to validate error X-Git-Tag: v1.4.0^2~22^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b4491d81a524ab7e5307ffb430d2f7d0c4b1e9f;p=thirdparty%2Fzstd.git Add CLI test to validate error --- diff --git a/tests/playTests.sh b/tests/playTests.sh index 493542960..137f1a441 100755 --- a/tests/playTests.sh +++ b/tests/playTests.sh @@ -410,6 +410,8 @@ $ECHO "- Create first dictionary " TESTFILE=../programs/zstdcli.c $ZSTD --train *.c ../programs/*.c -o tmpDict cp $TESTFILE tmp +$ECHO "- Compress dictionary with itself" +$ZSTD -f tmpDict -D tmpDict | grep "cannot use" && die "expected error : cannot compress dictionary with itself" $ECHO "- Dictionary compression roundtrip" $ZSTD -f tmp -D tmpDict $ZSTD -d tmp.zst -D tmpDict -fo result