diff options
author | Brad King <brad.king@kitware.com> | 2021-05-06 14:39:05 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-05-07 12:30:52 (GMT) |
commit | d7522b8f864db8df25b99eeabc625e55ad690a3e (patch) | |
tree | 6f9bc3bcbc373f103696c8c20565b45d7c6a45cf /Tests/RunCMake/CommandLine/E_create_hardlink-unresolved-symlink-prereq-check.cmake | |
parent | e0b4a22ca6874a15912eea86cde16f47cb5f9d93 (diff) | |
download | CMake-d7522b8f864db8df25b99eeabc625e55ad690a3e.zip CMake-d7522b8f864db8df25b99eeabc625e55ad690a3e.tar.gz CMake-d7522b8f864db8df25b99eeabc625e55ad690a3e.tar.bz2 |
cmSystemTools: Improve CreateLink and CreateSymlink error codes
In commit 7f89053953 (cmSystemTools: Return KWSys Status from CreateLink
and CreateSymlink, 2021-04-15) we just took the `-err` from libuv and
treated it as a POSIX error. This is accurate on POSIX, but on Windows
does not match the POSIX error codes.
Use `uv_fs_get_system_error` to get the actual system error code.
This requires libuv 1.38 or higher. Require that for Windows, but
fall back to the previous approach on POSIX.
Diffstat (limited to 'Tests/RunCMake/CommandLine/E_create_hardlink-unresolved-symlink-prereq-check.cmake')
-rw-r--r-- | Tests/RunCMake/CommandLine/E_create_hardlink-unresolved-symlink-prereq-check.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/RunCMake/CommandLine/E_create_hardlink-unresolved-symlink-prereq-check.cmake b/Tests/RunCMake/CommandLine/E_create_hardlink-unresolved-symlink-prereq-check.cmake index 5b97aec..d92554a 100644 --- a/Tests/RunCMake/CommandLine/E_create_hardlink-unresolved-symlink-prereq-check.cmake +++ b/Tests/RunCMake/CommandLine/E_create_hardlink-unresolved-symlink-prereq-check.cmake @@ -1,3 +1,3 @@ -if(${actual_stderr_var} MATCHES "operation not permitted") +if(${actual_stderr_var} MATCHES "A required privilege is not held by the client") unset(msg) endif() |