summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-10-06 20:35:51 (GMT)
committerBrad King <brad.king@kitware.com>2021-10-06 20:38:05 (GMT)
commit9dcf924093cab43190a0fb7e98bb804f4ce37c54 (patch)
treebbb9b90281b7573e87d09b3e7a10d2ef9963f072 /Tests
parent49392b591dd32732d101e7983f528f6560e7f7b5 (diff)
downloadCMake-9dcf924093cab43190a0fb7e98bb804f4ce37c54.zip
CMake-9dcf924093cab43190a0fb7e98bb804f4ce37c54.tar.gz
CMake-9dcf924093cab43190a0fb7e98bb804f4ce37c54.tar.bz2
Tests: Skip RunCMake.file INSTALL-FOLLOW_SYMLINK_CHAIN case on Cygwin
This case was added by commit e3ff7ced63 (file(INSTALL): Add FOLLOW_SYMLINK_CHAIN argument, 2019-05-16, v3.15.0-rc1~103^2). Skip it on Cygwin because it fails due to `foo/../` pairs being flattened away in symlinks.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/RunCMake/CMakeLists.txt2
-rw-r--r--Tests/RunCMake/file/RunCMakeTest.cmake4
2 files changed, 4 insertions, 2 deletions
diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt
index b7d38fb..e24ef58 100644
--- a/Tests/RunCMake/CMakeLists.txt
+++ b/Tests/RunCMake/CMakeLists.txt
@@ -419,7 +419,7 @@ add_RunCMake_test(ctest_update)
add_RunCMake_test(ctest_upload)
add_RunCMake_test(ctest_environment)
add_RunCMake_test(ctest_fixtures)
-add_RunCMake_test(file -DMSYS=${MSYS})
+add_RunCMake_test(file -DCYGWIN=${CYGWIN} -DMSYS=${MSYS})
add_RunCMake_test(file-CHMOD -DMSYS=${MSYS})
add_RunCMake_test(file-RPATH -DCMAKE_SYSTEM_NAME=${CMAKE_SYSTEM_NAME})
add_RunCMake_test(find_file)
diff --git a/Tests/RunCMake/file/RunCMakeTest.cmake b/Tests/RunCMake/file/RunCMakeTest.cmake
index 9efd3f4..aff4735 100644
--- a/Tests/RunCMake/file/RunCMakeTest.cmake
+++ b/Tests/RunCMake/file/RunCMakeTest.cmake
@@ -97,7 +97,9 @@ if(NOT WIN32
run_cmake(READ_SYMLINK)
run_cmake(READ_SYMLINK-noexist)
run_cmake(READ_SYMLINK-notsymlink)
- run_cmake(INSTALL-FOLLOW_SYMLINK_CHAIN)
+ if(NOT CYGWIN)
+ run_cmake(INSTALL-FOLLOW_SYMLINK_CHAIN)
+ endif()
endif()
run_cmake(REAL_PATH-unexpected-arg)