You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is intentional. These test files are somewhat large, and only necessary for testing the standard library, not for using it. A release build of zig is not expected to be able to pass the test suite, only a source checkout is.
"Unable to open debug info: TodoSupportCoffDebugInfo" is #721
Test 49/288 os.getRandomBytes...error: Unexpected this is in fact a test failure, but it sounds like you copied files around and did not do a straightforward run of the tests from a clone of master branch. If you repeat the steps for testing from README.md and get a test failure, I'd like to know about it. I'd be surprised, since they all pass on appveyor as well as my windows laptop.
Ack.. Applogies for Necro threading..
The test that was failing (to produce the Todo...) was 'os.getRandomBytes' which might have been usful in my first post.
I'm on Windows 10, and on my system atleast, the call to CryptAcquireContextA fail if (and only if) it has never been called before with a specific name (null in this case is specific) and flag of CRYPT_NEWKEYSET (0x8).
Get Last error returns 0x80090016 (which is NTE_BAD_KEYSET).
If you have called it at least once with flags = CRYPT_NEWKEYSET, then your fine, untill you use a name it hasnt seen before.
Solution seems to be, call it with flags = 0, if that fails with NTE_BAD_KEYSET, then call it with flags = CRYPT_NEWKEYSET.
I did this, and all tests passed.
I can hopfuly submit a PR for this in a week or so.. (Sorry delay due to mundane constraints.)
There seem to be missing some test files form the std lib.
io_test.zig, rand_test.zig, test.zig - maybe others.
Rep steps.
Using the replacing the contents of lib/zig/std with that from a dowload of master, looks to run as expected. (Fails for a different reason
Test 49/288 os.getRandomBytes...error: Unexpected
Unable to open debug info: TodoSupportCoffDebugInfo
But I'm guessing thats more expected.
)
The text was updated successfully, but these errors were encountered: