-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Test time::tests::instant_math fails on Windows (GNU) with +/-1 error #29970
Comments
Interesting! This is testing the property that the duration between two instants plus the first is the same as the second. Unfortunately this isn't true on Windows due to the +/- one problem on multiple cores. Have to think about what's the best course of action here. |
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Nov 23, 2015
Typical algebra currently doesn't work on the types in std::time currently (see [this comment][comment]), so tweak the tests to account for this property. [comment]: rust-lang#29866 (comment) Closes rust-lang#29970
bors
added a commit
that referenced
this issue
Nov 24, 2015
Typical algebra currently doesn't work on the types in std::time currently (see [this comment][comment]), so tweak the tests to account for this property. [comment]: #29866 (comment) Closes #29970
This still fails, btw
|
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Nov 30, 2015
I believe that because Windows' unit of resolution is 100ns that this unit of time will ensure that the assertions will hold true as it's representable in the native format. cc rust-lang#29970
bors
added a commit
that referenced
this issue
Dec 1, 2015
I believe that because Windows' unit of resolution is 100ns that this unit of time will ensure that the assertions will hold true as it's representable in the native format. cc #29970
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Windows 8.1 64-bit / MSYS2 / MinGW-w64
cc @alexcrichton
The text was updated successfully, but these errors were encountered: