]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
enable debug compile and unit testing flag for tests
authorBastian Dehn <hhaalo@arcor.de>
Sun, 17 Mar 2024 14:30:10 +0000 (15:30 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 17 Mar 2024 14:30:10 +0000 (15:30 +0100)
CMakeLists.txt
tests/kds_s2000w_read_config_tests.h

index 3c372853e3bf89daf0db8b96ec7c7cd6905c8681..f5ea579a0f50edb9a39e18ebb091442519280e38 100644 (file)
@@ -8,6 +8,7 @@ else()
        -fprofile-arcs \
        -ftest-coverage \
        -Wall \
+       -g \
        -Xlinker \
        --wrap=kds_s2000w_client_get_option \
        -Xlinker \
index 68d91a713472e47a137d63600be4e90ddac34385..7a0e33bd79e7bc608c94b8bb65d5a3ffdcfea94b 100644 (file)
@@ -1,5 +1,6 @@
 #ifndef KDS_S2000W_READ_CONFIG_TESTS_H
 #define KDS_S2000W_READ_CONFIG_TESTS_H
+#define UNIT_TESTING 1
 #include <stdarg.h>
 #include <stddef.h>
 #include <stdint.h>