From a0e0985d38d05a9a28b8b94a9f9ece8120c146a8 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Thu, 14 Dec 2017 13:32:24 -0800 Subject: [PATCH] added test on small file on top of test on small stream --- tests/playTests.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/playTests.sh b/tests/playTests.sh index c48148fa..c93c58fe 100755 --- a/tests/playTests.sh +++ b/tests/playTests.sh @@ -127,7 +127,9 @@ fi $ECHO "test : null-length file roundtrip" $ECHO -n '' | $ZSTD - --stdout | $ZSTD -d --stdout $ECHO "test : ensure small file doesn't add 3-bytes null block" -./datagen -g1 | $ZSTD | wc -c | grep "14" +./datagen -g1 > tmp1 +$ZSTD tmp1 -c | wc -c | grep "14" +$ZSTD < tmp1 | wc -c | grep "14" $ECHO "test : decompress file with wrong suffix (must fail)" $ZSTD -d tmpCompressed && die "wrong suffix error not detected!" $ZSTD -df tmp && die "should have refused : wrong extension"