summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2022-01-29 07:31:51 (GMT)
committerYann Collet <cyan@fb.com>2022-01-29 07:31:51 (GMT)
commitfbc61cde65217aa7e465789edbd1fc4f59ff4ca9 (patch)
tree2197e175b586f186b09308a7f9220f64266977f6 /tests
parent49e4c671c8d17363170f209614c9fc9f594c77a4 (diff)
downloadlz4-fbc61cde65217aa7e465789edbd1fc4f59ff4ca9.zip
lz4-fbc61cde65217aa7e465789edbd1fc4f59ff4ca9.tar.gz
lz4-fbc61cde65217aa7e465789edbd1fc4f59ff4ca9.tar.bz2
--test and --list return an error when parsing invalid file
fix #1045
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/Makefile b/tests/Makefile
index b4df3e3..5fc6fc6 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -362,7 +362,7 @@ test-lz4-basic: lz4 datagen unlz4 lz4cat
$(LZ4) --list tmp-tlb-hw.lz4 # test --list on valid single-frame file
$(LZ4) --list < tmp-tlb-hw.lz4 # test --list from stdin (file only)
$(CAT) tmp-tlb-hw >> tmp-tlb-hw.lz4
- $(LZ4) -f tmp-tlb-hw.lz4 # uncompress valid frame followed by invalid data
+ ! $(LZ4) -f tmp-tlb-hw.lz4 # uncompress valid frame followed by invalid data (must fail now)
$(LZ4) -BX tmp-tlb-hw -c -q | $(LZ4) -tv # test block checksum
# $(DATAGEN) -g20KB generates the same file every single time
# cannot save output of $(DATAGEN) -g20KB as input file to lz4 because the following shell commands are run before $(DATAGEN) -g20KB