mirror of
https://github.com/lz4/lz4.git
synced 2024-11-25 02:43:36 +08:00
/tests programs compiled with LZ4_DEBUG=1
to enable assert() within /lib
This commit is contained in:
parent
8a9c8e7324
commit
fdde4311fb
@ -35,11 +35,12 @@ PRGDIR := ../programs
|
||||
TESTDIR := versionsTest
|
||||
PYTHON ?= python3
|
||||
|
||||
DEBUGFLAGS = -g -DLZ4_DEBUG=1
|
||||
CFLAGS ?= -O3 # can select custom optimization flags. For example : CFLAGS=-O2 make
|
||||
CFLAGS += -g -Wall -Wextra -Wundef -Wcast-qual -Wcast-align -Wshadow \
|
||||
CFLAGS += -Wall -Wextra -Wundef -Wcast-qual -Wcast-align -Wshadow \
|
||||
-Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes \
|
||||
-Wpointer-arith -Wstrict-aliasing=1
|
||||
CFLAGS += $(MOREFLAGS)
|
||||
CFLAGS += $(DEBUGFLAGS) $(MOREFLAGS)
|
||||
CPPFLAGS:= -I$(LZ4DIR) -I$(PRGDIR) -DXXH_NAMESPACE=LZ4_
|
||||
FLAGS = $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)
|
||||
|
||||
|
@ -898,7 +898,6 @@ static void FUZ_unitTests(int compressionLevel)
|
||||
}
|
||||
|
||||
dict = dst;
|
||||
//dict = testInput + segStart;
|
||||
dictSize = segSize;
|
||||
|
||||
dst += segSize + 1;
|
||||
@ -972,7 +971,6 @@ static void FUZ_unitTests(int compressionLevel)
|
||||
#define BSIZE2 16435
|
||||
|
||||
/* first block */
|
||||
|
||||
messageSize = BSIZE1;
|
||||
XXH64_update(&xxhOrig, testInput + iNext, messageSize);
|
||||
crcOrig = XXH64_digest(&xxhOrig);
|
||||
|
Loading…
Reference in New Issue
Block a user