diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-04-08 09:07:10 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-04-08 09:07:10 +0000 |
commit | a690994778f7ed6d7a7b0c614471f3f95ac7a2e8 (patch) | |
tree | 9c7ebbf28701eb0a1daba4f469bf5ea04ce64f8d /tests | |
parent | 34d1280649a4bccd3a284cb45f15d7e7ac3cc44c (diff) | |
download | mpfr-a690994778f7ed6d7a7b0c614471f3f95ac7a2e8.tar.gz |
Update memory allocations scheme without gmp-impl.h.
Now the semantic of the memory allocation scheme is the same
with and without gmp-impl, as it should be.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2865 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests')
-rw-r--r-- | tests/reuse.c | 1 | ||||
-rw-r--r-- | tests/tests.c | 6 | ||||
-rw-r--r-- | tests/trandom.c | 1 | ||||
-rw-r--r-- | tests/tset_f.c | 1 |
4 files changed, 5 insertions, 4 deletions
diff --git a/tests/reuse.c b/tests/reuse.c index 9da254b50..079239a28 100644 --- a/tests/reuse.c +++ b/tests/reuse.c @@ -561,6 +561,7 @@ reldiff_wrapper (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mp_rnd_t rnd_mode) int main (void) { + MPFR_TEST_USE_RANDS (); tests_start_mpfr (); test3 (mpfr_add, "mpfr_add", 53, GMP_RNDN); diff --git a/tests/tests.c b/tests/tests.c index ab7a7db71..d3765d59a 100644 --- a/tests/tests.c +++ b/tests/tests.c @@ -30,12 +30,10 @@ MA 02111-1307, USA. */ #if TIME_WITH_SYS_TIME # include <sys/time.h> /* for struct timeval */ # include <time.h> -#else -# if HAVE_SYS_TIME_H +#elif HAVE_SYS_TIME_H # include <sys/time.h> -# else +#else # include <time.h> -# endif #endif #include "mpfr-test.h" diff --git a/tests/trandom.c b/tests/trandom.c index 1cdf892f1..e5d1ff967 100644 --- a/tests/trandom.c +++ b/tests/trandom.c @@ -237,6 +237,7 @@ main (int argc, char *argv[]) mp_prec_t prec; int verbose = 0; + MPFR_TEST_USE_RANDS (); tests_start_mpfr (); if (argc > 1) diff --git a/tests/tset_f.c b/tests/tset_f.c index 8178eb566..a92a47003 100644 --- a/tests/tset_f.c +++ b/tests/tset_f.c @@ -33,6 +33,7 @@ main (void) unsigned long k, pr; int r, inexact; + MPFR_TEST_USE_RANDS (); tests_start_mpfr (); mpf_init (y); |