Tue 05 Apr 2016 08:38:41 PM UTC, original submission:
Simulavr version: rel-1.1 branch (commit: 4d3c8c0fae3efa95)
Test suite fails on 64bit Ubuntu 14.04 with following errors:
Environment
Investigation
Floating point calculations give slightly different result in C++ Simulavr code and in Python tests. And after truncation of the fractional part, integer results differ by 1.
The code from adc_diff_t25.py:
Failure in test_00 is caused by following values:
Failure in test_02 is caused by following values:
Probably, the behavior described here takes place: http://www.viva64.com/en/b/0074/
Solution
Test voltage value(s) should be adjusted to produce a more stable result (I've changed 0.8 to 0.79999).
The patch attached.
Best regards,
Igor A. Perminov
|