From: Bastian Dehn Date: Fri, 22 Mar 2024 17:18:17 +0000 (+0100) Subject: add sanitaize option X-Git-Tag: v1.0.0^2~70^2~6 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=65acbf0082c0a74f9723eb21bb23b5042fe925ae;p=sane-kds-s2000w-net.git add sanitaize option --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 3e4e482..e1330f2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,6 +9,7 @@ else() -ftest-coverage \ -Wall \ -g \ +-fsanitize=address \ -Xlinker \ --wrap=kds_s2000w_client_get_option \ -Xlinker \ diff --git a/tests/kds_s2000w_net_tests.h b/tests/kds_s2000w_net_tests.h index 3f2334c..3ca3c38 100644 --- a/tests/kds_s2000w_net_tests.h +++ b/tests/kds_s2000w_net_tests.h @@ -1,5 +1,6 @@ #ifndef KDS_S2000W_NET_TESTS_H #define KDS_S2000W_NET_TESTS_H +#define UNIT_TESTING #include #include #include