diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-12-12 00:58:43 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-12-12 00:58:43 +0000 |
commit | 1f6acb449b1bad7fdc9cfbf7dd6e975b5fb082fc (patch) | |
tree | 12d559ed7b5332d0832eeace3649055cfd697299 | |
parent | 70bac44edc68944ae008d3ae03e3b5a9bde921bc (diff) | |
download | mpfr-1f6acb449b1bad7fdc9cfbf7dd6e975b5fb082fc.tar.gz |
Completed r11955: There were also DEBUG macros under the "tests"
directory. Since such macros can still be useful in case a test failure,
replaced them by MPFR_DEBUG to avoid issues with CI builds that define
the DEBUG macro. But an environment variable would be a better solution
(see MPFR_DEBUG_BADCASES as an example).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11958 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r-- | tests/reuse.c | 28 | ||||
-rw-r--r-- | tests/tget_set_d64.c | 4 | ||||
-rw-r--r-- | tests/tsum.c | 2 |
3 files changed, 16 insertions, 18 deletions
diff --git a/tests/reuse.c b/tests/reuse.c index 96163a0f8..2705d7c47 100644 --- a/tests/reuse.c +++ b/tests/reuse.c @@ -101,8 +101,8 @@ test3 (int (*testfunc)(mpfr_ptr, mpfr_srcptr, mpfr_srcptr, mpfr_rnd_t), mpfr_t res1; int i; -#ifdef DEBUG - printf("checking %s\n", foo); +#ifdef MPFR_DEBUG + printf ("checking %s\n", foo); #endif mpfr_init2 (ref1, prec); mpfr_init2 (ref2, prec); @@ -174,8 +174,8 @@ test4 (int (*testfunc)(mpfr_ptr, mpfr_srcptr, mpfr_srcptr, mpfr_srcptr, mpfr_t res; int i, j, k; -#ifdef DEBUG - printf("checking %s\n", foo); +#ifdef MPFR_DEBUG + printf ("checking %s\n", foo); #endif mpfr_init2 (ref, prec); mpfr_init2 (op1, prec); @@ -303,8 +303,8 @@ test2ui (int (*testfunc)(mpfr_ptr, mpfr_srcptr, unsigned long int, mpfr_rnd_t), mpfr_t res1; int i; -#ifdef DEBUG - printf("checking %s\n", foo); +#ifdef MPFR_DEBUG + printf ("checking %s\n", foo); #endif mpfr_init2 (ref1, prec); mpfr_init2 (ref2, prec); @@ -348,8 +348,8 @@ testui2 (int (*testfunc)(mpfr_ptr, unsigned long int, mpfr_srcptr, mpfr_rnd_t), mpfr_t res1; int i; -#ifdef DEBUG - printf("checking %s\n", foo); +#ifdef MPFR_DEBUG + printf ("checking %s\n", foo); #endif mpfr_init2 (ref1, prec); mpfr_init2 (ref3, prec); @@ -389,8 +389,8 @@ test2 (int (*testfunc)(mpfr_ptr, mpfr_srcptr, mpfr_rnd_t), mpfr_t res1; int i; -#ifdef DEBUG - printf("checking %s\n", foo); +#ifdef MPFR_DEBUG + printf ("checking %s\n", foo); #endif mpfr_init2 (ref1, prec); mpfr_init2 (ref2, prec); @@ -429,7 +429,7 @@ test2a (int (*testfunc)(mpfr_ptr, mpfr_srcptr), mpfr_t res1; int i; -#ifdef DEBUG +#ifdef MPFR_DEBUG printf ("checking %s\n", foo); #endif mpfr_init2 (ref1, prec); @@ -469,7 +469,7 @@ test3a (int (*testfunc)(mpfr_ptr, mpfr_ptr, mpfr_srcptr, mpfr_rnd_t), mpfr_t res1, res2; int i; -#ifdef DEBUG +#ifdef MPFR_DEBUG printf ("checking %s\n", foo); #endif mpfr_init2 (ref1, prec); @@ -532,8 +532,8 @@ pow_int (mpfr_rnd_t rnd) mpfr_t res1; int i; -#ifdef DEBUG - printf("pow_int\n"); +#ifdef MPFR_DEBUG + printf ("pow_int\n"); #endif mpfr_inits2 ((randlimb () % 200) + MPFR_PREC_MIN, ref1, ref2, res1, (mpfr_ptr) 0); diff --git a/tests/tget_set_d64.c b/tests/tget_set_d64.c index 6f1203dc8..68d0bd1d8 100644 --- a/tests/tget_set_d64.c +++ b/tests/tget_set_d64.c @@ -32,8 +32,6 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., # define DEC64_MAX 9.999999999999999E384dd #endif -/* #define DEBUG */ - #if _MPFR_IEEE_FLOATS static void print_decimal64 (_Decimal64 d) @@ -389,7 +387,7 @@ main (void) tests_start_mpfr (); mpfr_test_init (); -#ifdef DEBUG +#ifdef MPFR_DEBUG #ifdef DPD_FORMAT printf ("Using DPD format\n"); #else diff --git a/tests/tsum.c b/tests/tsum.c index f1c814731..9a23849c5 100644 --- a/tests/tsum.c +++ b/tests/tsum.c @@ -937,7 +937,7 @@ cancel (void) rnd = RND_RAND (); -#if DEBUG +#if MPFR_DEBUG printf ("mpfr_sum cancellation test\n"); for (j = 0; j < n; j++) { |