summaryrefslogtreecommitdiffstats
path: root/Tests/FunctionTest
diff options
context:
space:
mode:
authorFeRD (Frank Dana) <ferdnyc@gmail.com>2022-09-03 10:52:49 (GMT)
committerFeRD (Frank Dana) <ferdnyc@gmail.com>2022-09-03 10:52:49 (GMT)
commit4cae5b8f5c4dd3ccd3a31183b3dfd6b9b79c3bbb (patch)
tree44a1131a0ce4da1bee618a28bf9aa7e82b5a8c71 /Tests/FunctionTest
parentb4c5b5a5f9b833f165d431babb26034e35553473 (diff)
downloadCMake-4cae5b8f5c4dd3ccd3a31183b3dfd6b9b79c3bbb.zip
CMake-4cae5b8f5c4dd3ccd3a31183b3dfd6b9b79c3bbb.tar.gz
CMake-4cae5b8f5c4dd3ccd3a31183b3dfd6b9b79c3bbb.tar.bz2
FunctionTest: Fix some test failure checks
Fixes: #23584
Diffstat (limited to 'Tests/FunctionTest')
-rw-r--r--Tests/FunctionTest/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/FunctionTest/CMakeLists.txt b/Tests/FunctionTest/CMakeLists.txt
index 6450447..0660d0f 100644
--- a/Tests/FunctionTest/CMakeLists.txt
+++ b/Tests/FunctionTest/CMakeLists.txt
@@ -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 ()