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/ _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-libc-dev