Discussion:
[avr-libc-dev] [patch #8964] Update tests
Pitchumani
2016-03-31 12:35:38 UTC
Permalink
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/
Pitchumani
2016-04-04 08:51:21 UTC
Permalink
Update of patch #8964 (project avr-libc):

Status: None => Done
Open/Closed: Open => Closed

_______________________________________________________

Follow-up Comment #1:

Committed as rev 2521.
http://svn.savannah.nongnu.org/viewvc?view=rev&root=avr-libc&revision=2521


_______________________________________________________

Reply to this item at:

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

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

Continue reading on narkive:
Loading...