patchAVR C Runtime Library - Patches: patch #8964, Update tests

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #8964: Update tests

Submitter:  Pitchumani <pitchumani>
Submitted:  Thu 31 Mar 2016 12:35:37 PM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  pitchumani Open/Closed:  Closed

Mon 04 Apr 2016 08:51:21 AM UTC, comment #1: 
Pitchumani <pitchumani>
Group Member
Thu 31 Mar 2016 12:35:37 PM UTC, original submission:  

Test conditions in tests isinf-01.c and signbit-01.c are not correct. For example return value of isinf is non-zero if the argument is infinite. Avrlibc's isinf returns 1, this can't be same with libgcc's return value. Test condition shall be updated to check for non-zero values instead of comparing return values of avrlibc's and libgcc's.

Test modf-np.c checks modf function. But gcc takes libgcc's 'modf' instead of avrlibc's modf function.

Attached patch fixes these issues.

avrlibc/ChangeLog

    * tests/simulate/math/isinf-01.c: Update test condition as the expected
    value of isinf is non-zero in case of argument is infinite.
    * tests/simulate/math/signbit-01.c: Likewise for signbit function.
    * tests/simulate/math/modf-np.c: Update test to use avr-libc's modf
    function.

Pitchumani <pitchumani>
Group Member

 

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

Attached Files
file #36809:  update-tests.patch added by pitchumani (2KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pitchumani (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-04-04 pitchumani StatusNone Done
        Open/ClosedOpen Closed
    2016-03-31 pitchumani Attached File- Added update-tests.patch, #36809

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code