about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-11-13 13:31:24 -0800
committerbors <bors@rust-lang.org>2013-11-13 13:31:24 -0800
commit2b2a89d97f72aa6f1b1fc9849c4322f294747e12 (patch)
tree219cda823066d805573b5d1fe373db24fcf80434 /src/rustllvm/RustWrapper.cpp
parenta79ed57beb759bf1753d80a801756d82bea7ec10 (diff)
parentb9b908f62fa4c68d58c4c67c5f397914674bc196 (diff)
downloadrust-2b2a89d97f72aa6f1b1fc9849c4322f294747e12.tar.gz
rust-2b2a89d97f72aa6f1b1fc9849c4322f294747e12.zip
auto merge of #10447 : alexcrichton/rust/flaky-time-test, r=catamorphism
This test was failing periodically on windows and other platforms, and in
debugging the issue locally I've found that the previous test was failing
at the assertion `ns0 <= ns1`. Upon inspecting the values, the two numbers were
very close to one another, but off by a little bit.

I believe that this is because `precise_time_s` goes from `u64` -> `f64` and
then we go again back to `u64` for the assertion. This conversion is a lossy one
that's not always guaranteed to succeed, so instead I've changed the test to
only compare against u64 instances.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions