tests: add unit tests covered with Clang sanitizers
[project/libubox.git] / tests / CMakeLists.txt
index 1c448257a4d6849f8c78e46bcbd23a6fd1d84cdc..bd2205743318e09b47a5e2d352f610ea1edef536 100644 (file)
@@ -8,6 +8,7 @@ ENDMACRO(ADD_UNIT_TEST)
 
 FILE(GLOB test_cases "test-*.c")
 FOREACH(test_case ${test_cases})
-       GET_FILENAME_COMPONENT(test_case ${test_case} NAME_WE)
-       ADD_UNIT_TEST(${test_case})
+  GET_FILENAME_COMPONENT(test_case ${test_case} NAME_WE)
+  ADD_UNIT_TEST(${test_case})
+  ADD_UNIT_TEST_SAN(${test_case})
 ENDFOREACH(test_case)