summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/file/CREATE_LINK-noexist.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/file/CREATE_LINK-noexist.cmake')
-rw-r--r--Tests/RunCMake/file/CREATE_LINK-noexist.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/file/CREATE_LINK-noexist.cmake b/Tests/RunCMake/file/CREATE_LINK-noexist.cmake
new file mode 100644
index 000000000..5ee258017
--- /dev/null
+++ b/Tests/RunCMake/file/CREATE_LINK-noexist.cmake
@@ -0,0 +1,4 @@
+file(CREATE_LINK does_not_exist.txt TestLink.txt RESULT result)
+if(NOT result STREQUAL "0")
+ message("Hard link error: ${result}")
+endif()