]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
migrate cancel net
authorBastian Dehn <hhaalo@arcor.de>
Sun, 17 Mar 2024 13:32:22 +0000 (14:32 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 17 Mar 2024 13:32:22 +0000 (14:32 +0100)
CMakeLists.txt
tests/CMakeLists.txt
tests/kds_s2000w_net_tests.c

index bffc08bcbfd88660de245f0567b3530185a42cc0..092c4644bae779808ec3b6b51a3530b31cb4f6da 100644 (file)
@@ -9,7 +9,8 @@ else()
        -ftest-coverage \
        -Wall \
        -Xlinker \
-        --wrap=kds_s2000w_client_get_option" CACHE STRING "test coverage compiler flags")
+        --wrap=kds_s2000w_client_get_option \
+        --wrap=kds_s2000w_client_stop_scan" CACHE STRING "test coverage compiler flags")
 endif()
 
 message(STATUS "CMAKE_C_FLAGS " ${CMAKE_C_FLAGS})
index 52bc669f055020c3e7b5080c777c6226474f964b..3d86abb1a8da7d712e6d0911b7057a5eb5b7da37 100644 (file)
@@ -5,8 +5,6 @@ find_library(SUBUNIT NAMES subunit REQUIRED)
 find_library(MATH NAMES m REQUIRED)
 find_package(CMOCKA REQUIRED)
 
-set(CMAKE_EXE_LINKER_FLAGS )
-
 message(STATUS "find ${CMOCKA_LIBRARY}")
 
 add_executable("runtests"
index 8d854963895c4e7fb81cb60910fe29bc1cafa05c..8a152f98adefe6afd2ad67fcc997d7f08f59c347 100644 (file)
@@ -52,9 +52,9 @@ int __wrap_kds_s2000w_client_get_option(int64_t sessionid, response* response)
        return mock_type(int);
 }
 
-int kds_s2000w_client_stop_scan(int64_t sessionid, response* response)
+int __wrap_kds_s2000w_client_stop_scan(int64_t sessionid, response* response)
 {
-       return 0;
+       return mock_type(int);
 }
 
 int kds_s2000w_client_open_session(response* response)