]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
add sanitaize option
authorBastian Dehn <hhaalo@arcor.de>
Fri, 22 Mar 2024 17:18:17 +0000 (18:18 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Fri, 22 Mar 2024 17:18:17 +0000 (18:18 +0100)
CMakeLists.txt
tests/kds_s2000w_net_tests.h

index 3e4e4820d74f3efbda14de06c751c9817bf63360..e1330f232f9971d7cd49302df3b7231c09f40c60 100644 (file)
@@ -9,6 +9,7 @@ else()
 -ftest-coverage \
 -Wall \
 -g \
+-fsanitize=address \
 -Xlinker \
 --wrap=kds_s2000w_client_get_option \
 -Xlinker \
index 3f2334c98b33199f0438284e7956ac38b3025803..3ca3c389e433c3b12fcbd1f452a6bdc20821d92e 100644 (file)
@@ -1,5 +1,6 @@
 #ifndef KDS_S2000W_NET_TESTS_H
 #define KDS_S2000W_NET_TESTS_H
+#define UNIT_TESTING
 #include <stdarg.h>
 #include <stddef.h>
 #include <stdint.h>