]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
更新 playTests.sh
author15596858998 <www.zhangxiao131@huawei.com>
Sun, 21 Nov 2021 04:35:58 +0000 (12:35 +0800)
committer15596858998 <www.zhangxiao131@huawei.com>
Sun, 21 Nov 2021 04:35:58 +0000 (12:35 +0800)
tests/playTests.sh

index 69653276a39c491f58dbce3ce79e3363b74f4441..4face06dd78a578ac38df42e02e775352b0e693f 100755 (executable)
@@ -713,6 +713,10 @@ test -f tmp2
 test -f tmp3
 test -f tmp4
 
+println "test : survive the list of files with too long filenames (--filelist=FILE)"
+datagen -g51M > tmp_badList
+zstd -f --filelist=tmp_badList && die "should have failed : file name length is too long"
+
 println "test : survive a list of files which is text garbage (--filelist=FILE)"
 datagen > tmp_badList
 zstd -f --filelist=tmp_badList && die "should have failed : list is text garbage"