dictBuilder fails to create dictionary on certain input

Properly expressed with an error code (see zstd_errors.h)
and a cli return code != 0
This commit is contained in:
Yann Collet
2017-03-23 16:24:02 -07:00
parent 5caaa15968
commit f332ece468
5 changed files with 14 additions and 5 deletions
+5
View File
@@ -281,6 +281,11 @@ case "$UNAME" in
*) $MD5SUM -c tmph1 ;;
esac
rm -rf dirTestDict
$ECHO "- dictionary builder on bogus input"
$ECHO "Hello World" > tmp
$ZSTD --train -q tmp && die "Dictionary training should fail : not enough input source"
./datagen -P0 -g10M > tmp
$ZSTD --train -q tmp && die "Dictionary training should fail : source is pure noise"
rm tmp*