-
Notifications
You must be signed in to change notification settings - Fork 648
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests failing on Windows #255
Comments
We recognize that we didn't provide any instructions on running LIT tests on Windows. This is an improvement area. On Windows, unit tests of Hermes can run in Visual Studio and other environments. However, LIT tests of Hermes can only run from Cygwin or MinGW (Git bash). In PowerShell, I ran (you can likely skip these steps):
After that, you can use either Cygwin or MinGW (Git bash). Note that it is necessary to add non-Cygwin Python and non-Cygwin CMake to the front of the path, as shown in the instructions below. For Cygwin:
For MinGW (Git bash):
|
Thanks Haozhun for the detailed instructions. I ran the tests on both Linux and Windows and I thought it would be helpful if I share the output with you because they both produce 1 failing testcase. Linux (WSL):
Windows:
|
I don't understand what's going on here. Both are very mysterious. The first test failure is complaining that the two numbers (2^64 - 1) are not equal. I checked and both numbers have size_t type. The second test failure is emitted by I do not have WSL set up. And I cannot reproduce either bug on Windows, Linux, or Mac. |
Hi @haozhun, |
When running
MSBuild.exe check-hermes.vcxproj
on Windows, all tests fail.Below is an example for one of the tests:
I tried rebuilding Hermes with
--distribute
and they still fail.I tried replacing the
/
with\
for the above test and rerunning it separately and it worked, so it might be a problem with using forward slashes for paths, but I'm not sure.The text was updated successfully, but these errors were encountered: