tests: add vector tests

We want to explicitly check overflows, so we need to enable that with
ASan.
This commit is contained in:
Bruno BELANYI 2020-11-25 19:48:04 +01:00
parent 8d83f778be
commit 6f04d4b9df
2 changed files with 424 additions and 1 deletions

View file

@ -16,12 +16,13 @@ all: $(OBJS)
.PHONY: check
check: testsuite
./testsuite --verbose
ASAN_OPTIONS=allocator_may_return_null=1 ./testsuite --verbose
TEST_SRC = \
tests/avl.c \
tests/list.c \
tests/testsuite.c \
tests/vector.c \
TEST_OBJS = $(TEST_SRC:.c=.o)