From 2e2c949e27d8bca7e9821534fc4a301b5dea2a9a Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sun, 17 Mar 2024 15:30:10 +0100 Subject: [PATCH] enable debug compile and unit testing flag for tests --- CMakeLists.txt | 1 + tests/kds_s2000w_read_config_tests.h | 1 + 2 files changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3c37285..f5ea579 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,6 +8,7 @@ else() -fprofile-arcs \ -ftest-coverage \ -Wall \ + -g \ -Xlinker \ --wrap=kds_s2000w_client_get_option \ -Xlinker \ diff --git a/tests/kds_s2000w_read_config_tests.h b/tests/kds_s2000w_read_config_tests.h index 68d91a7..7a0e33b 100644 --- a/tests/kds_s2000w_read_config_tests.h +++ b/tests/kds_s2000w_read_config_tests.h @@ -1,5 +1,6 @@ #ifndef KDS_S2000W_READ_CONFIG_TESTS_H #define KDS_S2000W_READ_CONFIG_TESTS_H +#define UNIT_TESTING 1 #include #include #include -- 2.39.5