From 6cf4e09083cddd4321de0ae69f2b4b2181b348e2 Mon Sep 17 00:00:00 2001 From: johannst Date: Wed, 28 Apr 2021 23:09:57 +0200 Subject: test: enabled sanitizer --- test/Makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/Makefile b/test/Makefile index 398ebc1..209a7cd 100644 --- a/test/Makefile +++ b/test/Makefile @@ -3,11 +3,20 @@ check: build ./checker -build: checker.cc ../lib/libcommon.a - g++ -o checker -g -O2 -I ../lib/include -Wall -Wextra $^ +build: checker.cc test_helper.h ../lib/libcommon.a + g++ -o checker \ + -g -O2 \ + -I ../lib/include \ + -Wall -Wextra \ + -fsanitize=address \ + -fsanitize=pointer-compare \ + -fsanitize=pointer-subtract \ + -fsanitize=undefined \ + $(filter-out %.h, $^) ../lib/libcommon.a: make -C ../lib clean: rm -f checker + make -C ../lib clean -- cgit v1.2.3