]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
added cli test veryfying bug #944
authorYann Collet <cyan@fb.com>
Wed, 13 Dec 2017 03:47:38 +0000 (19:47 -0800)
committerYann Collet <cyan@fb.com>
Wed, 13 Dec 2017 03:47:38 +0000 (19:47 -0800)
this test fails on v1.3.2

tests/playTests.sh

index 299c2d883b16fd58223db01d8dfaa0dc28399cad..6b78b305ac8ac5ee5efe3498d703bc39426674f2 100755 (executable)
@@ -297,6 +297,8 @@ cp $TESTFILE tmp
 $ZSTD -f tmp -D tmpDict
 $ZSTD -d tmp.zst -D tmpDict -fo result
 $DIFF $TESTFILE result
+$ECHO "- Test dictionary compression with multithreading "
+./datagen -g5M | $ZSTD -T2 -D tmpDict | $ZSTD -t -D tmpDict   # fails with v1.3.2 
 $ECHO "- Create second (different) dictionary "
 $ZSTD --train *.c ../programs/*.c ../programs/*.h -o tmpDictC
 $ZSTD -d tmp.zst -D tmpDictC -fo result && die "wrong dictionary not detected!"