aboutsummaryrefslogtreecommitdiff
path: root/math/libm-test.inc
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-05-15 19:53:09 -0700
committerUlrich Drepper <drepper@redhat.com>2009-05-15 19:53:09 -0700
commitbbc5d74dd0bd1c3dbe7ea8515f081dc7e318272c (patch)
treeeb949fb77276cec6f193388a804a156d37105238 /math/libm-test.inc
parentbf3fde08c6dfc45497d0f48aec4299d0ecb56b4c (diff)
downloadglibc-bbc5d74dd0bd1c3dbe7ea8515f081dc7e318272c.zip
glibc-bbc5d74dd0bd1c3dbe7ea8515f081dc7e318272c.tar.gz
glibc-bbc5d74dd0bd1c3dbe7ea8515f081dc7e318272c.tar.bz2
Add test for range error in expm1.
Diffstat (limited to 'math/libm-test.inc')
-rw-r--r--math/libm-test.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/math/libm-test.inc b/math/libm-test.inc
index 8c5727c..260d3ec 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);
}