Merge pull request #12632 from a3d4/symlinks-on-windows

Clarify symlink handling on Windows
This commit is contained in:
Kamil Śliwak 2022-02-08 13:16:24 +01:00 committed by GitHub
commit 122ad0770a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -94,6 +94,13 @@ dependencies (`evmone <https://github.com/ethereum/evmone/releases>`_,
On macOS some of the testing scripts expect GNU coreutils to be installed.
This can be easiest accomplished using Homebrew: ``brew install coreutils``.
On Windows systems make sure that you have a privilege to create symlinks,
otherwise several tests may fail.
Administrators should have that privilege, but you may also
`grant it to other users <https://docs.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/create-symbolic-links#policy-management>`_
or
`enable Developer Mode <https://docs.microsoft.com/en-us/windows/apps/get-started/enable-your-device-for-development>`_.
Running the Tests
-----------------

View File

@ -81,5 +81,6 @@ bool solidity::test::createSymlinkIfSupportedByFilesystem(
BOOST_THROW_EXCEPTION(runtime_error(
"Failed to create a symbolic link: \"" + _linkName.string() + "\""
" -> " + _targetPath.string() + "\"."
" " + symlinkCreationError.message() + "."
));
}