summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CTest/TestfileErrors-Script.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/CTest/TestfileErrors-Script.cmake')
-rw-r--r--Tests/RunCMake/CTest/TestfileErrors-Script.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/CTest/TestfileErrors-Script.cmake b/Tests/RunCMake/CTest/TestfileErrors-Script.cmake
new file mode 100644
index 0000000..d9fc7c8
--- /dev/null
+++ b/Tests/RunCMake/CTest/TestfileErrors-Script.cmake
@@ -0,0 +1,4 @@
+message(SEND_ERROR "SEND_ERROR")
+message(FATAL_ERROR "FATAL_ERROR")
+# This shouldn't get printed because the script aborts on FATAL_ERROR
+message(SEND_ERROR "reaching the unreachable")