From: Bastian Dehn Date: Sun, 17 Mar 2024 14:30:10 +0000 (+0100) Subject: enable debug compile and unit testing flag for tests X-Git-Tag: v1.0.0^2~72^2~19 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=2e2c949e27d8bca7e9821534fc4a301b5dea2a9a;p=sane-kds-s2000w-net.git enable debug compile and unit testing flag for tests --- 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