summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CommandLine/E_create_symlink-broken-replace-check.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/CommandLine/E_create_symlink-broken-replace-check.cmake')
-rw-r--r--Tests/RunCMake/CommandLine/E_create_symlink-broken-replace-check.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/CommandLine/E_create_symlink-broken-replace-check.cmake b/Tests/RunCMake/CommandLine/E_create_symlink-broken-replace-check.cmake
new file mode 100644
index 0000000..d37df01
--- /dev/null
+++ b/Tests/RunCMake/CommandLine/E_create_symlink-broken-replace-check.cmake
@@ -0,0 +1,7 @@
+if(${actual_stderr_var} MATCHES "operation not permitted")
+ unset(msg)
+else()
+ if(NOT IS_DIRECTORY ${RunCMake_TEST_BINARY_DIR}/L)
+ set(RunCMake_TEST_FAILED "Symlink 'L' not replaced correctly!")
+ endif()
+endif()