Two tests in Tests/FunctionTest/ pass unconditionally
While looking through the unit tests for style/process guidance, I found this in Tests/FunctionTest/CMakeLists.txt
(lines 46-63):
# test argument naming and raise scope
function(track_find_variable cache_variable is_changed)
set("${is_changed}" changed PARENT_SCOPE)
endfunction()
track_find_variable(testvar is_changed)
if ("${is_changed}" STREQUAL changed)
pass("same argument name test")
else ()
pass("same argument name test")
endif ()
include("Util.cmake")
tester()
if (tester_res STREQUAL "${CMAKE_CURRENT_LIST_FILE}")
pass("CMAKE_CURRENT_LIST_FILE test")
else ()
pass("CMAKE_CURRENT_LIST_FILE test")
endif ()
Not sure I really see the point of tests that always pass.
Edit: (Better yet, they've been like that since 2008!)
Edited by Frank Dana