bugSimulavr: an AVR simulator - Bugs: bug #47629, adc_diff_t25 tests 00 and 02 fail...

 
 

bug #47629: adc_diff_t25 tests 00 and 02 fail on 64bit Ubuntu 14.04

Submitted by:  None
Submitted on:  Tue 05 Apr 2016 08:38:41 PM UTC  
 
Category: Test SuiteSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Christian Taedcke <chrta>
Originator Email: -unavailable-Open/Closed: Closed
Component Version: simulavr

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #36843:  fix_regress_amd64.patch added by None (1KiB - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by chrta (Updated the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 01 May 2016 08:37:49 PM UTCchrtaStatusNone=>Fixed
      Assigned toNone=>chrta
      Open/ClosedOpen=>Closed
    Tue 05 Apr 2016 08:38:41 PM UTCNoneAttached File-=>Added fix_regress_amd64.patch, #36843

    Back to the top


    Powered by Savane 3.1-cleanup1