summaryrefslogtreecommitdiff
path: root/tests/tconst_log2.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2002-05-27 13:48:56 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2002-05-27 13:48:56 +0000
commita8bbca8da73288c230b02e23f8844502e700f844 (patch)
tree121921db74799d1c64ac6832e018fbc6119f7eb8 /tests/tconst_log2.c
parent6cc9ba1510baa89ceb8a9590f03c916c9142ade2 (diff)
downloadmpfr-a8bbca8da73288c230b02e23f8844502e700f844.tar.gz
Patch by Kevin Ryde for memory leak checking + misc declaration fixes.
Code moved from mpfr-test.h to tests.c. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1932 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tconst_log2.c')
-rw-r--r--tests/tconst_log2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/tconst_log2.c b/tests/tconst_log2.c
index 4ae036c7d..04817d691 100644
--- a/tests/tconst_log2.c
+++ b/tests/tconst_log2.c
@@ -25,6 +25,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
#include "mpfr.h"
#include "mpfr-impl.h"
+#include "mpfr-test.h"
/* tlog2 [prec] [rnd] [0 = no print] */
@@ -77,6 +78,8 @@ main (int argc, char *argv[])
int p;
mp_rnd_t rnd;
+ tests_start_mpfr ();
+
p = (argc>1) ? atoi(argv[1]) : 53;
rnd = (argc>2) ? atoi(argv[2]) : GMP_RNDZ;
@@ -113,5 +116,6 @@ main (int argc, char *argv[])
mpfr_clear(x);
+ tests_end_mpfr ();
return 0;
}