From 22111768a5d08b859c4c2739da56381e1a9a65e8 Mon Sep 17 00:00:00 2001 From: cmuhammedrafi Date: Tue, 3 Dec 2024 10:56:46 +0000 Subject: [PATCH] test fix --- Tests/mocks/secure_wrappermock.h | 18 ++++++++++++++++++ Tests/unit_test/tests.cmake | 1 - 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 Tests/mocks/secure_wrappermock.h diff --git a/Tests/mocks/secure_wrappermock.h b/Tests/mocks/secure_wrappermock.h new file mode 100644 index 0000000..4120872 --- /dev/null +++ b/Tests/mocks/secure_wrappermock.h @@ -0,0 +1,18 @@ +#pragma once +#include +#include + +# ifdef __cplusplus +extern "C" { +# endif + +int v_secure_system(const char *command, ...); + +FILE *v_secure_popen(const char *direction, const char *command, ...); + +int v_secure_pclose(FILE *); + + +# ifdef __cplusplus +} +# endif diff --git a/Tests/unit_test/tests.cmake b/Tests/unit_test/tests.cmake index 60c974c..746a190 100644 --- a/Tests/unit_test/tests.cmake +++ b/Tests/unit_test/tests.cmake @@ -43,7 +43,6 @@ target_include_directories(${UNIT_TEST} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) install(TARGETS ${UNIT_TEST} DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) add_executable(${GMOCK_UNIT_TEST} - Tests/unit_test/test_WiFiSignalStrengthMonitor.cpp Tests/mocks/Iarm.cpp Tests/mocks/thunder/Module.cpp Tests/mocks/Wraps.cpp