diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-11-12 11:44:14 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-11-12 11:44:14 -0800 |
| commit | b9b908f62fa4c68d58c4c67c5f397914674bc196 (patch) | |
| tree | 720dc1cfc17f9531032025eb2ecc6e66a5b3a61e /src/rustllvm/RustWrapper.cpp | |
| parent | 2ee72ba5c61f1b59d470e2899f208500f2cb0d7f (diff) | |
| download | rust-b9b908f62fa4c68d58c4c67c5f397914674bc196.tar.gz rust-b9b908f62fa4c68d58c4c67c5f397914674bc196.zip | |
Make a time test less flaky
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
