add test case survive a list of files which long file name length
This commit is contained in:
parent
b4fce45176
commit
2a19c4bba3
@ -0,0 +1,14 @@
|
||||
diff -Nur zstd-1.5.0/tests/playTests.sh new-zstd/tests/playTests.sh
|
||||
--- zstd-1.5.0/tests/playTests.sh 2021-05-14 22:59:34.000000000 +0800
|
||||
+++ new-zstd/tests/playTests.sh 2021-11-18 16:44:28.963975598 +0800
|
||||
@@ -689,6 +689,10 @@
|
||||
test -f tmp3
|
||||
test -f tmp4
|
||||
|
||||
+println "test : survive a list of files which long file name length (--filelist=FILE)"
|
||||
+datagen -g51M > tmp_badList
|
||||
+zstd -f --filelist=tmp_badList && die "should have failed : list file name length is too long" # can trigger the file list 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"
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
Name: zstd
|
||||
Version: 1.5.0
|
||||
Release: 7
|
||||
Release: 8
|
||||
Summary: A fast lossless compression algorithm
|
||||
License: BSD and GPLv2
|
||||
URL: https://github.com/facebook/zstd
|
||||
@ -12,6 +12,7 @@ Patch1: backport-zstd-1.5.0-patch-1-set-mtime-on-output-files.patch
|
||||
Patch2: backport-zstd-1.5.0-patch-2-add-tests-set-mtime-on-output-files.patch
|
||||
Patch3: backport-zstd-1.5.0-patch-3-remove-invalid-test.patch
|
||||
Patch4: backport-zstd-1.5.0-patch-4-limit-train-samples.patch
|
||||
Patch5: patch-5-add-test-case-survive-a-list-of-files-which-long-file-name-length.patch
|
||||
|
||||
BuildRequires: gtest-devel gcc-c++ pkg-config
|
||||
|
||||
@ -90,6 +91,9 @@ install -D -m644 programs/zstd.1 %{buildroot}%{_mandir}/man1/pzstd.1
|
||||
%{_mandir}/man1/*.1*
|
||||
|
||||
%changelog
|
||||
* Thu Nov 18 2021 zhangxiao <zhangxiao131@huawei.com> - 1.5.0.8
|
||||
* add test case survive a list of files which long file name length
|
||||
|
||||
* Tue Nov 16 2021 zhangying <zhangying103@huawei.com> - 1.5.0.7
|
||||
* run the complete test case on ci
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user