Merge topic 'test-symlink'

6ea883d652 Tests: Avoid output when running symlink check

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6536
This commit is contained in:
Brad King
2021-09-20 14:02:10 +00:00
committed by Kitware Robot

View File

@@ -1656,6 +1656,8 @@ if(BUILD_TESTING)
"${CMake_SOURCE_DIR}/Tests/CMakeLists.txt" # random source file that exists
"${CMake_BINARY_DIR}/Tests/try_to_create_symlink" # random target file in existing directory
RESULT_VARIABLE _symlink_result
OUTPUT_VARIABLE _symlink_stdout
ERROR_VARIABLE _symlink_stderr
)
if(_symlink_result EQUAL 0)
file(REMOVE "${CMake_BINARY_DIR}/Tests/try_to_create_symlink")