• R/O
  • SSH

libctools: Commit

This library contains code that extends and simplifies different operations
for C language based programs.


Commit MetaInfo

Revisióne13bcfe5d330cb1611efd4664b2d1d17cb6bc6f3 (tree)
Tiempo2022-09-12 08:45:17
AutorSergey Gusarov <laborer2008@gmai...>
CommiterSergey Gusarov

Log Message

tests/CMakeLists.txt: Protection of empty strings as argument of self debugging messages

Cambiar Resumen

Diferencia incremental

diff -r e2c78c370b9f -r e13bcfe5d330 tests/CMakeLists.txt
--- a/tests/CMakeLists.txt Mon Sep 12 02:42:14 2022 +0300
+++ b/tests/CMakeLists.txt Mon Sep 12 02:45:17 2022 +0300
@@ -23,10 +23,10 @@
2323
2424 function(generateTest headers dirs)
2525 #message("headers:")
26- #message(${headers})
26+ #message("${headers}")
2727
2828 #message("dirs:")
29- #message(${dirs})
29+ #message("${dirs}")
3030
3131 set(DIRS_LIST ${dirs})
3232
@@ -34,29 +34,29 @@
3434 set(RELATIVE_NAME "")
3535 foreach(DIR ${DIRS_LIST})
3636 #message("dirs list item:")
37- #message(${DIR})
37+ #message("${DIR}")
3838 set(RELATIVE_PATH "${RELATIVE_PATH}/${DIR}")
3939 set(RELATIVE_NAME "${RELATIVE_NAME}_${DIR}")
4040 endforeach()
4141
4242 #message("relative path:")
43- #message(${RELATIVE_PATH})
43+ #message("${RELATIVE_PATH}")
4444
4545 #message("relative name:")
46- #message(${RELATIVE_NAME})
46+ #message("${RELATIVE_NAME}")
4747
4848 foreach(HEADER ${headers})
4949 get_filename_component(TEST_NAME ${HEADER} NAME_WE)
5050 #message("test name:")
51- #message(${TEST_NAME})
51+ #message("${TEST_NAME}")
5252
5353 set(RUNNER_NAME "${CMAKE_CURRENT_LIST_DIR}/../build/runners${RELATIVE_PATH}/test_${TEST_NAME}_runner.c")
5454 #message("runner name:")
55- #message(${RUNNER_NAME})
55+ #message("${RUNNER_NAME}")
5656
5757 set(TEST_C_NAME "${CMAKE_CURRENT_LIST_DIR}/${RELATIVE_PATH}/test_${TEST_NAME}.c")
5858 #message("test c name:")
59- #message(${TEST_C_NAME})
59+ #message("${TEST_C_NAME}")
6060
6161 # Don't encumber to library to get linked
6262 if ("${TEST_NAME}" STREQUAL "ctools")
@@ -66,19 +66,19 @@
6666 if (NOT "${RELATIVE_NAME}" STREQUAL "")
6767 string(LENGTH "${RELATIVE_NAME}" RELATIVE_NAME_LENGTH)
6868 #message("RELATIVE_NAME_LENGTH")
69- #message(${RELATIVE_NAME_LENGTH})
69+ #message("${RELATIVE_NAME_LENGTH}")
7070
7171 math(EXPR RELATIVE_PREFIX_LENGTH "${RELATIVE_NAME_LENGTH} - 1")
7272 #message("RELATIVE_PREFIX_LENGTH")
73- #message(${RELATIVE_PREFIX_LENGTH})
73+ #message("${RELATIVE_PREFIX_LENGTH}")
7474
7575 string(SUBSTRING "${RELATIVE_NAME}" 1 ${RELATIVE_PREFIX_LENGTH} RELATIVE_PREFIX)
7676 #message("relative prefix:")
77- #message(${RELATIVE_PREFIX})
77+ #message("${RELATIVE_PREFIX}")
7878
7979 set(TEST_NAME "${RELATIVE_PREFIX}_${TEST_NAME}")
8080 #message("test name:")
81- #message(${TEST_NAME})
81+ #message("${TEST_NAME}")
8282 endif()
8383
8484 add_executable(${TEST_NAME} ${UNITY_SRC} ${RUNNER_NAME} ${TEST_C_NAME})
Show on old repository browser