Skip to content

Commit

Permalink
gh-685: Separate version ei testing to prevent own ei code inteference
Browse files Browse the repository at this point in the history
  • Loading branch information
pnoltes committed Apr 14, 2024
1 parent 99e503a commit 56c6767
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion libs/utils/gtest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,19 @@ if (EI_TESTS)
add_test(NAME test_utils_celix_err_with_ei COMMAND test_utils_celix_err_with_ei)
setup_target_for_coverage(test_utils_celix_err_with_ei SCAN_DIR ..)

#Note testing version seperated, otherwise version calls are already wrapped
add_executable(test_utils_version_with_ei
src/VersionErrorInjectionTestSuite.cc
)
target_link_libraries(test_utils_version_with_ei PRIVATE
utils_cut
Celix::malloc_ei
Celix::asprintf_ei
Celix::utils_ei
GTest::gtest GTest::gtest_main
)
add_test(NAME test_utils_version_with_ei COMMAND test_utils_version_with_ei)
setup_target_for_coverage(test_utils_version_with_ei SCAN_DIR ..)

#Note testing array list seperated, otherwise array list calls are already wrapped
add_executable(test_utils_array_list_with_ei
Expand All @@ -124,7 +137,6 @@ if (EI_TESTS)
src/FileUtilsErrorInjectionTestSuite.cc
src/ConvertUtilsErrorInjectionTestSuite.cc
src/PropertiesErrorInjectionTestSuite.cc
src/VersionErrorInjectionTestSuite.cc
src/HashMapErrorInjectionTestSuite.cc
src/FilterErrorInjectionTestSuite.cc
src/PropertiesEncodingErrorInjectionTestSuite.cc
Expand Down

0 comments on commit 56c6767

Please sign in to comment.