summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/FPHSA/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2019-09-27 10:20:15 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2019-09-27 14:04:54 (GMT)
commit60473cc660cc37c922b0ff93112deeb34d51f2ca (patch)
tree89c8f8e2bc482c7d0c5935e709e895013c2bc404 /Tests/RunCMake/FPHSA/RunCMakeTest.cmake
parent8c568722d79f9de0c03550981cbcb9453733a8bb (diff)
downloadCMake-60473cc660cc37c922b0ff93112deeb34d51f2ca.zip
CMake-60473cc660cc37c922b0ff93112deeb34d51f2ca.tar.gz
CMake-60473cc660cc37c922b0ff93112deeb34d51f2ca.tar.bz2
FPHSA: add capability to specify message explaining reason of failure
Fixes: #19660
Diffstat (limited to 'Tests/RunCMake/FPHSA/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/FPHSA/RunCMakeTest.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/FPHSA/RunCMakeTest.cmake b/Tests/RunCMake/FPHSA/RunCMakeTest.cmake
index dd73cd4..f3e6c3e 100644
--- a/Tests/RunCMake/FPHSA/RunCMakeTest.cmake
+++ b/Tests/RunCMake/FPHSA/RunCMakeTest.cmake
@@ -39,3 +39,10 @@ unset(RunCMake_DEFAULT_stderr)
# check if searching for a version 0 works
list(APPEND RunCMake_TEST_OPTIONS "-DCMAKE_MODULE_PATH=${CMAKE_CURRENT_LIST_DIR}" "-DPseudo_VERSION=0")
run_cmake(exact_0_matching)
+
+# check custom error message
+set(RunCMake_TEST_OPTIONS "-DCMAKE_MODULE_PATH=${CMAKE_CURRENT_LIST_DIR}" "-DCustomMessage_VERSION=1.2.3.4")
+run_cmake(custom_message_1)
+set(RunCMake_TEST_OPTIONS "-DCMAKE_MODULE_PATH=${CMAKE_CURRENT_LIST_DIR}" "-DCONFIG_MODE=TRUE")
+run_cmake(custom_message_2)
+run_cmake(custom_message_3)