summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorTushar Maheshwari <tushar27192@gmail.com>2019-01-11 13:07:05 (GMT)
committerBrad King <brad.king@kitware.com>2019-01-16 15:03:35 (GMT)
commit9a3d85cfc501fe3c1655e4a6ae9fd08fd9a1fbb7 (patch)
treed1317dec8dfa28f4f331086b2e220bcacb204be8 /Tests
parente68ea269d72773e53db0c6c6848f6f69f3fd7329 (diff)
downloadCMake-9a3d85cfc501fe3c1655e4a6ae9fd08fd9a1fbb7.zip
CMake-9a3d85cfc501fe3c1655e4a6ae9fd08fd9a1fbb7.tar.gz
CMake-9a3d85cfc501fe3c1655e4a6ae9fd08fd9a1fbb7.tar.bz2
Tests: Skip symlink tests on Windows
Diffstat (limited to 'Tests')
-rw-r--r--Tests/RunCMake/file/CREATE_LINK-SYMBOLIC-noexist.cmake4
-rw-r--r--Tests/RunCMake/file/CREATE_LINK-SYMBOLIC.cmake4
-rw-r--r--Tests/RunCMake/file/CREATE_LINK-noexist.cmake5
-rw-r--r--Tests/RunCMake/file/CREATE_LINK.cmake5
-rw-r--r--Tests/RunCMake/file/RunCMakeTest.cmake2
5 files changed, 10 insertions, 10 deletions
diff --git a/Tests/RunCMake/file/CREATE_LINK-SYMBOLIC-noexist.cmake b/Tests/RunCMake/file/CREATE_LINK-SYMBOLIC-noexist.cmake
new file mode 100644
index 0000000..61aaf38
--- /dev/null
+++ b/Tests/RunCMake/file/CREATE_LINK-SYMBOLIC-noexist.cmake
@@ -0,0 +1,4 @@
+file(CREATE_LINK does_not_exist.txt TestSymLink.txt RESULT sym_result SYMBOLIC)
+if(NOT sym_result STREQUAL "0")
+ message("Symlink fail: ${sym_result}")
+endif()
diff --git a/Tests/RunCMake/file/CREATE_LINK-SYMBOLIC.cmake b/Tests/RunCMake/file/CREATE_LINK-SYMBOLIC.cmake
new file mode 100644
index 0000000..77b899c
--- /dev/null
+++ b/Tests/RunCMake/file/CREATE_LINK-SYMBOLIC.cmake
@@ -0,0 +1,4 @@
+file(CREATE_LINK ${CMAKE_CURRENT_LIST_FILE} TestSymLink.cmake RESULT sym_result SYMBOLIC)
+if(NOT sym_result STREQUAL "0")
+ message(SEND_ERROR "Symlink result='${sym_result}'")
+endif()
diff --git a/Tests/RunCMake/file/CREATE_LINK-noexist.cmake b/Tests/RunCMake/file/CREATE_LINK-noexist.cmake
index 1c4dc12..5ee2580 100644
--- a/Tests/RunCMake/file/CREATE_LINK-noexist.cmake
+++ b/Tests/RunCMake/file/CREATE_LINK-noexist.cmake
@@ -2,8 +2,3 @@ file(CREATE_LINK does_not_exist.txt TestLink.txt RESULT result)
if(NOT result STREQUAL "0")
message("Hard link error: ${result}")
endif()
-
-file(CREATE_LINK does_not_exist.txt TestSymLink.txt RESULT sym_result SYMBOLIC)
-if(NOT sym_result STREQUAL "0")
- message("Symlink fail: ${sym_result}")
-endif()
diff --git a/Tests/RunCMake/file/CREATE_LINK.cmake b/Tests/RunCMake/file/CREATE_LINK.cmake
index 1d65b69..b7c090e 100644
--- a/Tests/RunCMake/file/CREATE_LINK.cmake
+++ b/Tests/RunCMake/file/CREATE_LINK.cmake
@@ -2,8 +2,3 @@ file(CREATE_LINK ${CMAKE_CURRENT_LIST_FILE} TestLink.cmake RESULT result)
if(NOT result STREQUAL "0")
message(SEND_ERROR "Hard link result='${result}'")
endif()
-
-file(CREATE_LINK ${CMAKE_CURRENT_LIST_FILE} TestSymLink.cmake RESULT sym_result SYMBOLIC)
-if(NOT sym_result STREQUAL "0")
- message(SEND_ERROR "Symlink result='${sym_result}'")
-endif()
diff --git a/Tests/RunCMake/file/RunCMakeTest.cmake b/Tests/RunCMake/file/RunCMakeTest.cmake
index 4259680..bbabddd 100644
--- a/Tests/RunCMake/file/RunCMakeTest.cmake
+++ b/Tests/RunCMake/file/RunCMakeTest.cmake
@@ -56,6 +56,8 @@ run_cmake_command(GLOB-error-CONFIGURE_DEPENDS-SCRIPT_MODE ${CMAKE_COMMAND} -P
${RunCMake_SOURCE_DIR}/GLOB-error-CONFIGURE_DEPENDS-SCRIPT_MODE.cmake)
if(NOT WIN32 OR CYGWIN)
+ run_cmake(CREATE_LINK-SYMBOLIC)
+ run_cmake(CREATE_LINK-SYMBOLIC-noexist)
run_cmake(GLOB_RECURSE-cyclic-recursion)
run_cmake(INSTALL-SYMLINK)
run_cmake(READ_SYMLINK)