]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
added a check to ensure 0-size is present in frame header
authorYann Collet <cyan@fb.com>
Tue, 17 Oct 2017 23:23:20 +0000 (16:23 -0700)
committerYann Collet <cyan@fb.com>
Tue, 17 Oct 2017 23:23:20 +0000 (16:23 -0700)
tests/playTests.sh

index f008d899883ce6f3ffaf6be6841af96f5b5f746c..299c2d883b16fd58223db01d8dfaa0dc28399cad 100755 (executable)
@@ -621,7 +621,7 @@ $ECHO "\n===>  zstd --list/-l test with null files "
 $ZSTD tmp5
 $ZSTD -l tmp5.zst
 ! $ZSTD -l tmp5*
-$ZSTD -lv tmp5.zst
+$ZSTD -lv tmp5.zst | grep "Decompressed Size: 0.00 KB (0 B)"  # check that 0 size is present in header
 ! $ZSTD -lv tmp5*
 
 $ECHO "\n===>  zstd --list/-l test with no content size field "