diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2002-05-27 13:48:56 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2002-05-27 13:48:56 +0000 |
commit | a8bbca8da73288c230b02e23f8844502e700f844 (patch) | |
tree | 121921db74799d1c64ac6832e018fbc6119f7eb8 /tests/tlog.c | |
parent | 6cc9ba1510baa89ceb8a9590f03c916c9142ade2 (diff) | |
download | mpfr-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/tlog.c')
-rw-r--r-- | tests/tlog.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/tlog.c b/tests/tlog.c index efed820ca..b376385c7 100644 --- a/tests/tlog.c +++ b/tests/tlog.c @@ -272,16 +272,18 @@ main (int argc, char *argv[]) int N = 0; double d; + tests_start_mpfr (); + SEED_RAND (time(NULL)); if (argc==4) { /* tlog x prec rnd */ check3(atof(argv[1]), atoi(argv[2]), atoi(argv[3])); - return 0; + goto done; } if (argc==3) { /* tlog N p : N calculus with precision p*/ printf("Doing %d random tests in %d precision\n",atoi(argv[1]),atoi(argv[2])); slave(atoi(argv[1]),atoi(argv[2])); - return 0; + goto done; } if (argc==2) { /* tlog N: N tests with random double's */ @@ -359,5 +361,7 @@ main (int argc, char *argv[]) test_generic (2, 100, 40); + done: + tests_end_mpfr (); return 0; } |