aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2021-04-28 23:09:57 +0200
committerjohannst <johannes.stoelp@gmail.com>2021-04-28 23:09:57 +0200
commit6cf4e09083cddd4321de0ae69f2b4b2181b348e2 (patch)
tree015db606babc4138778cca40380b5b845bff15e1
parentd367355eb4c3569d422034b69737d8dc7022e13e (diff)
downloaddynld-6cf4e09083cddd4321de0ae69f2b4b2181b348e2.tar.gz
dynld-6cf4e09083cddd4321de0ae69f2b4b2181b348e2.zip
test: enabled sanitizer
-rw-r--r--test/Makefile13
1 files changed, 11 insertions, 2 deletions
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