[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] [patch #8964] Update tests

From: Pitchumani
Subject: [avr-libc-dev] [patch #8964] Update tests
Date: Thu, 31 Mar 2016 12:35:38 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36


                 Summary: Update tests
                 Project: AVR C Runtime Library
            Submitted by: pitchumani
            Submitted on: Thu 31 Mar 2016 12:35:37 PM GMT
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: pitchumani
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any



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.


    * 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


File Attachments:

Date: Thu 31 Mar 2016 12:35:37 PM GMT  Name: update-tests.patch  Size: 2kB  
By: pitchumani



Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]