]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
fix client init and free in test
authorBastian Dehn <hhaalo@arcor.de>
Sun, 2 Mar 2025 20:27:44 +0000 (21:27 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 2 Mar 2025 20:27:44 +0000 (21:27 +0100)
CMakeLists.txt
tests/kds_s2000w_client_mock.c
tests/kds_s2000w_net_tests.c

index 6dd792be792906cb0a426c2dff6b75217c602299..094d19f4488620dc707ea76991e7c507084ec755 100644 (file)
@@ -22,9 +22,7 @@ IF (RUN_TESTS)
 -Wall \
 -g \
 -fsanitize=address \
--Wl,--wrap,kds_s2000w_client_init,\
---wrap,kds_s2000w_client_free,\
---wrap,kds_s2000w_client_open_session,\
+-Wl,--wrap,kds_s2000w_client_open_session,\
 --wrap,kds_s2000w_client_close_session,\
 --wrap,kds_s2000w_client_start_scan,\
 --wrap,kds_s2000w_client_stop_scan,\
index a58f26ca4bcab11c98042c746e4ea3be4485b26c..700ca514105a678525feadca12f4f94e8cac7cdd 100644 (file)
@@ -17,16 +17,6 @@ void mock_response(response* resp)
        resp->size = mock_resp->size;
 }
 
-void __wrap_kds_s2000w_client_init()
-{
-       return;
-}
-
-void __wrap_kds_s2000w_client_free()
-{
-       return;
-}
-
 uint8_t __wrap_kds_s2000w_client_open_session(response* response)
 {
        function_called();
index 03c5d6e200d599d5acdb3907fca978cf367ade14..47e10c5704ca9f46c535b1d98aebc3af5e8bab2b 100644 (file)
@@ -153,6 +153,7 @@ void sane_kds_s2000w_net_open_test()
        resp = NULL;
        free(hlist);
        hlist = NULL;
+       kds_s2000w_client_free();
 }
 
 void sane_kds_s2000w_net_open_busy_device_test()