Clarify symlink handling on Windows

This commit is contained in:
a3d4 2022-02-04 17:54:21 +01:00
parent 2f0ccb21be
commit 7634fc4ea9
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. On macOS some of the testing scripts expect GNU coreutils to be installed.
This can be easiest accomplished using Homebrew: ``brew install coreutils``. 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 Running the Tests
----------------- -----------------

View File

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