diff options
author | Brad King <brad.king@kitware.com> | 2021-09-17 13:28:57 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-09-17 13:28:57 (GMT) |
commit | 6ea883d652a64dc94931c15c2a5c00ed4a9c6b8e (patch) | |
tree | 901b27e692086c2fe10af3d12ec9d269ffa767d0 /Tests | |
parent | 241048d6ceb5dd4a16950c29286aebbcc46e565c (diff) | |
download | CMake-6ea883d652a64dc94931c15c2a5c00ed4a9c6b8e.zip CMake-6ea883d652a64dc94931c15c2a5c00ed4a9c6b8e.tar.gz CMake-6ea883d652a64dc94931c15c2a5c00ed4a9c6b8e.tar.bz2 |
Tests: Avoid output when running symlink check
Since commit 58d10cf6f1 (Alternative symlink-creating mode for
file(INSTALL ...), 2021-08-02) we test creating a symlink during
configuration to decide whether to activate some tests. Capture
the process output during the check to avoid leaking the error
message on failure.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index 4ccbfeb..da6b670 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -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") |