summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CommandLine/E_create_symlink-broken-create-check.cmake
blob: 5df5f2fb70aa8422f284a4203386163f461ec780 (plain)
1
2
3
4
5
6
7
8
9
10
if(${actual_stderr_var} MATCHES "operation not permitted")
  unset(msg)
else()
  if(NOT IS_SYMLINK ${RunCMake_TEST_BINARY_DIR}/L)
    set(RunCMake_TEST_FAILED "Symlink 'L' incorrectly not created!")
  endif()
  if(EXISTS ${RunCMake_TEST_BINARY_DIR}/L)
    set(RunCMake_TEST_FAILED "Symlink 'L' not broken!")
  endif()
endif()