avr-libc-dev
[Top][All Lists]
Advanced

[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

URL:
  <http://savannah.nongnu.org/patch/?8964>

                 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

    _______________________________________________________

Details:

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.




    _______________________________________________________

File Attachments:


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

<http://savannah.nongnu.org/patch/download.php?file_id=36809>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?8964>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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