tests: add vector tests
We want to explicitly check overflows, so we need to enable that with ASan.
This commit is contained in:
parent
8d83f778be
commit
6f04d4b9df
2 changed files with 424 additions and 1 deletions
3
Makefile
3
Makefile
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue