]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Added test to check decompression error return code 147/head
authorYann Collet <yann.collet.73@gmail.com>
Mon, 14 Mar 2016 16:05:40 +0000 (17:05 +0100)
committerYann Collet <yann.collet.73@gmail.com>
Mon, 14 Mar 2016 16:05:40 +0000 (17:05 +0100)
programs/playTests.sh

index ec625ee849e4ac137404c298dbe4422add8b6ed1..891ab9d4ecfe831dc72645da56052857e1522fde 100755 (executable)
@@ -36,7 +36,10 @@ $ZSTD --decompress tmpCompressed --stdout > tmpResult
 $ZSTD -q tmp && die "overwrite check failed!"
 $ZSTD -q -f tmp
 $ZSTD -q --force tmp
-
+$ZSTD -df tmp && die "should have refused : wrong extension"
+cp tmp tmp2.zst
+$ZSTD -df tmp2.zst && die "should have failed : wrong format"
+rm tmp2.zst
 
 echo "\n**** frame concatenation **** "