summaryrefslogtreecommitdiff
path: root/tests/tconst_pi.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_pi.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_pi.c')
-rw-r--r--tests/tconst_pi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/tconst_pi.c b/tests/tconst_pi.c
index 7d26f2da1..fdf6f6d09 100644
--- a/tests/tconst_pi.c
+++ b/tests/tconst_pi.c
@@ -23,6 +23,7 @@ MA 02111-1307, USA. */
#include <stdlib.h>
#include "gmp.h"
#include "mpfr.h"
+#include "mpfr-test.h"
/* tpi [prec] [rnd] [0 = no print] */
@@ -31,6 +32,8 @@ main (int argc, char *argv[])
{
mpfr_t x; int p; unsigned char rnd;
+ tests_start_mpfr ();
+
p = (argc>1) ? atoi(argv[1]) : 53;
rnd = (argc>2) ? atoi(argv[2]) : GMP_RNDZ;
mpfr_init2(x, p);
@@ -43,5 +46,6 @@ main (int argc, char *argv[])
}
mpfr_clear(x);
+ tests_end_mpfr ();
return 0;
}