about summary refs log tree commit diff
path: root/math/libm-test.inc
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-04-25 08:12:24 +0000
committerUlrich Drepper <drepper@redhat.com>2009-04-25 08:12:24 +0000
commite971e76d8d248ce128641983e90b7cf6e81f2e4e (patch)
tree7ae73bbc23f891972dc747bd5c29a42855982ff3 /math/libm-test.inc
parentdb6edfb341b4d15a24c80bf4113462203bd2dfc8 (diff)
downloadglibc-e971e76d8d248ce128641983e90b7cf6e81f2e4e.tar.gz
glibc-e971e76d8d248ce128641983e90b7cf6e81f2e4e.tar.xz
glibc-e971e76d8d248ce128641983e90b7cf6e81f2e4e.zip
* sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
	for lgamma should se errno to ERANGE, not EDOM.
	* math/libm-test.inc (lgamma_test): Check errno for pole errors.
Diffstat (limited to 'math/libm-test.inc')
-rw-r--r--math/libm-test.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/math/libm-test.inc b/math/libm-test.inc
index 6d9a3ec6cb..68f2f05a70 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -3241,7 +3241,9 @@ lgamma_test (void)
   TEST_f_f (lgamma, nan_value, nan_value);
 
   /* lgamma (x) == +inf plus divide by zero exception for integer x <= 0.  */
+  errno = 0;
   TEST_f_f (lgamma, -3, plus_infty, DIVIDE_BY_ZERO_EXCEPTION);
+  check_int ("errno for lgamma(-integer) == ERANGE", errno, ERANGE, 0, 0, 0);
   TEST_f_f (lgamma, minus_infty, plus_infty);
 
   TEST_f_f1 (lgamma, 1, 0, 1);