summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2019-07-15 19:11:34 (GMT)
committerYann Collet <cyan@fb.com>2019-07-15 19:11:34 (GMT)
commit6654c2cd3bd49dfc6b6bb3447bcc01799ea35ac3 (patch)
treecc41ddbff1fe2aaf4d35fe12516f5a697f99fd7a /.travis.yml
parenta23541463d924f11dfc0843f4ddb10a1e777e405 (diff)
downloadlz4-6654c2cd3bd49dfc6b6bb3447bcc01799ea35ac3.zip
lz4-6654c2cd3bd49dfc6b6bb3447bcc01799ea35ac3.tar.gz
lz4-6654c2cd3bd49dfc6b6bb3447bcc01799ea35ac3.tar.bz2
ensure conformance with custom LZ4_DISTANCE_MAX
It's now possible to select a custom LZ4_DISTANCE_MAX at compile time, provided it's <= 65535. However, in some cases (when compressing in byU16 mode), the new distance wasn't respected, as it used to implied that it was necessarily within range. Added a distance check for this case. Also : added a new TravisCI test which ensures that custom LZ4_DISTANCE_MAX compiles correctly and compresses correctly (relying on `assert()` to find outsized offsets).
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index af5cf0f..bd29630 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -33,6 +33,10 @@ matrix:
script:
- CC=clang MOREFLAGS=-fsanitize=address make -C tests test-frametest test-fuzzer
+ - name: Custom LZ4_DISTANCE_MAX
+ script:
+ - MOREFLAGS=-DLZ4_DISTANCE_MAX=8000 make check
+
- name: (Precise) g++ and clang CMake test
dist: precise
script: