test resilience on garbage file

and clean traces
This commit is contained in:
Yann Collet
2019-10-25 17:01:26 -07:00
parent 1ead0c5d5a
commit 8e414b586d
2 changed files with 8 additions and 9 deletions
+8
View File
@@ -333,6 +333,14 @@ test -f tmp2
test -f tmp3
test -f tmp4
println "test : survive a list of files which is text garbage (--file=FILE)"
./datagen > tmp_badList
$ZSTD -f --file=tmp_badList && die "should have failed : list is text garbage"
println "test : survive a list of files which is binary garbage (--file=FILE)"
./datagen -P0 -g1M > tmp_badList
$ZSTD -qq -f --file=tmp_badList && die "should have failed : list is binary garbage" # let's avoid printing binary garbage on console
rm -rf tmp*