From: Ulrich Drepper Date: Sat, 16 May 2009 02:53:09 +0000 (-0700) Subject: Add test for range error in expm1. X-Git-Tag: fedora/glibc-2.10.90-1~8^2~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbc5d74dd0bd1c3dbe7ea8515f081dc7e318272c;p=thirdparty%2Fglibc.git Add test for range error in expm1. --- diff --git a/ChangeLog b/ChangeLog index f317568d357..050431278bb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2009-05-15 Ulrich Drepper + * 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. diff --git a/math/libm-test.inc b/math/libm-test.inc index 8c5727ca279..260d3ec6654 100644 --- a/math/libm-test.inc +++ b/math/libm-test.inc @@ -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); }