FunctionTest: Fix some test failure checks

Fixes: #23584
This commit is contained in:
FeRD (Frank Dana)
2022-09-03 06:52:49 -04:00
parent b4c5b5a5f9
commit 4cae5b8f5c

View File

@@ -51,7 +51,7 @@ track_find_variable(testvar is_changed)
if ("${is_changed}" STREQUAL changed)
pass("same argument name test")
else ()
pass("same argument name test")
fail("same argument name test" "Got: ${is_changed}")
endif ()
include("Util.cmake")
@@ -59,7 +59,7 @@ tester()
if (tester_res STREQUAL "${CMAKE_CURRENT_LIST_FILE}")
pass("CMAKE_CURRENT_LIST_FILE test")
else ()
pass("CMAKE_CURRENT_LIST_FILE test")
fail("CMAKE_CURRENT_LIST_FILE test" "Got: ${tester_res}")
endif ()