summaryrefslogtreecommitdiff
path: root/tests/tui_sub.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/tui_sub.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/tui_sub.c')
-rw-r--r--tests/tui_sub.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/tui_sub.c b/tests/tui_sub.c
index 016acd051..15694f8ac 100644
--- a/tests/tui_sub.c
+++ b/tests/tui_sub.c
@@ -205,7 +205,11 @@ main (int argc, char *argv[])
{
mp_prec_t p;
unsigned k;
+
+ tests_start_mpfr ();
+
#ifdef MPFR_HAVE_FESETROUND
+ {
double x;
unsigned long y, N;
int i, rnd_mode, rnd;
@@ -224,6 +228,7 @@ main (int argc, char *argv[])
check(y, x, rnd, 0.0);
}
}
+ }
#endif
special ();
for (p=2; p<100; p++)
@@ -247,5 +252,6 @@ main (int argc, char *argv[])
check(293607738, -1.9967571564050541e-5, GMP_RNDU, 2.9360773800002003e8);
check(354270183, 2.9469161763489528e3, GMP_RNDN, 3.5426723608382362e8);
+ tests_end_mpfr ();
return 0;
}