summaryrefslogtreecommitdiff
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-09-07 13:45:10 +0000
committerKitware Robot <kwrobot@kitware.com>2022-09-07 09:45:20 -0400
commit8371fb84c0e3c8f36aaa1c2b9524e887afe84de9 (patch)
tree62f1140ec927ae28135dc7e5060ac8bc11b59823 /Tests
parent69947f4984e4d79529a09e7f3a641d83ef7d99e4 (diff)
parent4cae5b8f5c4dd3ccd3a31183b3dfd6b9b79c3bbb (diff)
downloadcmake-8371fb84c0e3c8f36aaa1c2b9524e887afe84de9.tar.gz
Merge topic 'functiontests-haz-fails'
4cae5b8f5c FunctionTest: Fix some test failure checks Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7640
Diffstat (limited to 'Tests')
-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 64504470d4..0660d0fa3b 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 ()