[MSVC] Failed to run some tests on Windows with VS 2026
- Dominant language
- C++
- Stars
- 25.7k
- Forks
- 6.2k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 29
Description
## Description
The MSVC team regularly builds popular open-source projects, including yours, with development versions of the build tools in order to find and fix regressions in the compiler and libraries before they can ship and cause trouble for the world. This also allows us to provide advance notice of breaking changes, which is the case here.
Solidity failed to run some tests on Windows with VS 2026. Could you please help take a look? Thanks in advance!
## Environment
- Compiler version: MSVC with VS 2026
- Operating system: Windows 11
## Steps to Reproduce
1. Open VS 2026 x64 CMD.
2. git clone https://github.com/argotorg/solidity C:\gitP\argotorg\solidity
3. cd C:\gitP\argotorg\solidity
4. mkdir build_amd64
5. Download https://github.com/ipsilon/evmone/releases/download/v0.21.0/evmone-0.21.0-windows-amd64.zip and unzip it to C:\gitP\argotorg\solidity\build_amd64\evmone
6. powershell C:\gitP\argotorg\solidity\scripts\install_deps.ps1
7. Use vcpkg to install decencies "boost-filesystem boost-units boost-program-options boost-system boost-test boost-variant boost-multiprecision boost-bimap boost-process boost-assign boost-rational"
8. cmake -G "Visual Studio 18 2026" -A x64 -DCMAKE_SYSTEM_VERSION=10.0.26100.0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded -DBoost_DIR="C:\gitP\argotorg\solidity\deps\boost\lib\cmake\Boost-1.86.0" ..
9. cmake --build . --config Release --verbose
10. set PATH=C:\gitP\argotorg\solidity\build_amd64\evmone\bin;%PATH%
11. soltest.exe -l all
## Actual result:
*** 84 failures are detected in the test module "SolidityTests"
- FileReaderTest/normalizeCLIPathForVFS_absolute_path
- FileReaderTest/normalizeCLIPathForVFS_relative_path
- FileReaderTest/normalizeCLIPathForVFS_root_name_only
- FileReaderTest/normalizeCLIPathForVFS_stripping_root_name
- CommandLineInterfaceTest/cli_paths_to_source_unit_names_base_path_same_as_work_dir
- CommandLineInterfaceTest/cli_paths_to_source_unit_names_relative_base_path
- CommandLineInterfaceTest/cli_paths_to_source_unit_names_normalization_and_weird_names
- CommandLineInterfaceTest/cli_paths_to_source_unit_names_symlinks
- CommandLineInterfaceTest/cli_paths_to_source_unit_names_base_path_and_stdin
- CommandLineInterfaceAllowPathsTest/allow_path_case_sensitive
## Test log file:
[Test (6).log](https://github.com/user-attachments/files/30219583/Test.6.log)
Contributor guide
Assessment
This issue has not been assessed yet.