From bbc5d74dd0bd1c3dbe7ea8515f081dc7e318272c Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 15 May 2009 19:53:09 -0700 Subject: Add test for range error in expm1. --- math/libm-test.inc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'math') diff --git a/math/libm-test.inc b/math/libm-test.inc index 8c5727ca27..260d3ec665 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); } -- cgit v1.2.3