summaryrefslogtreecommitdiff
path: root/tests/tset_ld.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2017-05-19 13:45:10 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2017-05-19 13:45:10 +0000
commitcd6d443a66f0ac8a9e7b46a4ce5adfdcc0c399c8 (patch)
tree046a6e58bde0755b86f1a66ee3d8cd995390108c /tests/tset_ld.c
parentf19ddeb2b18e1483ae3f9e5570e3ed9380d339be (diff)
downloadmpfr-cd6d443a66f0ac8a9e7b46a4ce5adfdcc0c399c8.tar.gz
[tests] Got rid of MPFR_TESTS_EXCEPTIONS (added in r11489 and above),
which is redundant with MPFR_TESTS_DIVBYZERO and MPFR_ERRDIVZERO. The code related to these exception is now like r11488 (see the output of "svn diff -r11488"), but keeping the following changes: * Missing !defined(MPFR_ERRDIVZERO) tests added in r11498,11499. * In tests.c: - code related to traps (macro MPFR_RAISE_EXCEPTIONS, which will be renamed); - more detailed output about which FP exceptions occurred; - removal of "#ifdef MPFR_ERRDIVZERO" (as in r11493), as this is better with Automake 1.13+ (required by MPFR since r9375). Note: EXCEPTIONS_FLAG renamed to FPE_FLAGS, since EXCEPTIONS_FLAG is reserved by ISO C when <errno.h> is included. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11504 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tset_ld.c')
-rw-r--r--tests/tset_ld.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/tset_ld.c b/tests/tset_ld.c
index 4dac1dea8..d8431e3ce 100644
--- a/tests/tset_ld.c
+++ b/tests/tset_ld.c
@@ -73,7 +73,7 @@ print_binary (long double d, int flag)
return 0;
}
if (d < (long double) 0.0
-#if !defined(MPFR_ERRDIVZERO) && !defined(MPFR_TESTS_EXCEPTIONS)
+#if !defined(MPFR_ERRDIVZERO)
|| (d == (long double) 0.0 && (1.0 / (double) d < 0.0))
#endif
)
@@ -506,7 +506,7 @@ main (int argc, char *argv[])
mpfr_init2 (x, MPFR_LDBL_MANT_DIG + 64);
-#if !defined(MPFR_ERRDIVZERO) && !defined(MPFR_TESTS_EXCEPTIONS)
+#if !defined(MPFR_ERRDIVZERO)
/* check NaN */
mpfr_set_nan (x);
d = mpfr_get_ld (x, MPFR_RNDN);
@@ -532,7 +532,7 @@ main (int argc, char *argv[])
#endif
}
-#if !defined(MPFR_ERRDIVZERO) && !defined(MPFR_TESTS_EXCEPTIONS)
+#if !defined(MPFR_ERRDIVZERO)
/* check +Inf */
mpfr_set_inf (x, 1);
d = mpfr_get_ld (x, MPFR_RNDN);
@@ -625,7 +625,7 @@ main (int argc, char *argv[])
test_small ();
check_subnormal ();
-#if !defined(MPFR_ERRDIVZERO) && !defined(MPFR_TESTS_EXCEPTIONS)
+#if !defined(MPFR_ERRDIVZERO)
check_overflow ();
#endif