Skip to content

Commit

Permalink
Add test for range error in expm1.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed May 16, 2009
1 parent bf3fde0 commit bbc5d74
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
2009-05-15 Ulrich Drepper <drepper@redhat.com>

* math/libm-test.inc (expm1_test): Add test for range error.

* Versions.def: Add GLIBC_2.11 for libc.
* debug/Makefile (routines): Add longjmp_chk.
Add rules to build and run tst-longjmp_chk.
Expand Down
4 changes: 4 additions & 0 deletions math/libm-test.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2603,6 +2603,10 @@ expm1_test (void)
TEST_f_f (expm1, 1, M_El - 1.0);
TEST_f_f (expm1, 0.75L, 1.11700001661267466854536981983709561L);

errno = 0;
TEST_f_f (expm1, 100000.0, plus_infty);
check_int ("errno for expm1(large) == ERANGE", errno, ERANGE, 0, 0, 0);

END (expm1);
}

Expand Down

0 comments on commit bbc5d74

Please sign in to comment.