summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CommandLine/E_create_symlink-missing-dir-stderr.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-01-20 18:50:31 (GMT)
committerBrad King <brad.king@kitware.com>2014-01-20 19:02:21 (GMT)
commite0228e2b04b3d6bf72304038c8621fc5072e7f4e (patch)
tree4bfc57e8ee9240fd8076ed5567731d01ff692fb4 /Tests/RunCMake/CommandLine/E_create_symlink-missing-dir-stderr.txt
parentd4ca30ae150ea83c91bb75527a4152ce87e289e5 (diff)
downloadCMake-e0228e2b04b3d6bf72304038c8621fc5072e7f4e.zip
CMake-e0228e2b04b3d6bf72304038c8621fc5072e7f4e.tar.gz
CMake-e0228e2b04b3d6bf72304038c8621fc5072e7f4e.tar.bz2
cmake: Improve '-E create_symlink' edge case handling (#14713)
The logic added by commit ffc0b5e4 (Overwrite the symlink if it already exists, 2007-02-15) does not recognize and remove existing broken links before replacing them. Improve the logic to remove any existing destination file or link (but not directory). On failure, report an error message explaining why the existing path could not be removed or the new one could not be created. Add a RunCMake.CommandLine test to cover 'cmake -E' cases. Start with test cases covering 'cmake -E create_symlink' behavior on UNIX platforms.
Diffstat (limited to 'Tests/RunCMake/CommandLine/E_create_symlink-missing-dir-stderr.txt')
-rw-r--r--Tests/RunCMake/CommandLine/E_create_symlink-missing-dir-stderr.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/RunCMake/CommandLine/E_create_symlink-missing-dir-stderr.txt b/Tests/RunCMake/CommandLine/E_create_symlink-missing-dir-stderr.txt
new file mode 100644
index 0000000..7a6d84b
--- /dev/null
+++ b/Tests/RunCMake/CommandLine/E_create_symlink-missing-dir-stderr.txt
@@ -0,0 +1 @@
+failed to create symbolic link 'missing-dir/L':