summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CommandLine/E_create_symlink-broken-create-check.cmake
blob: 43573bfe9f90c2c670af7215eb53cc02054bc2d5 (plain)
1
2
3
4
5
6
7
8
9
10
if(${actual_stderr_var} MATCHES "A required privilege is not held by the client")
  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()