summaryrefslogtreecommitdiff
path: root/tests/tgeneric.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2020-12-17 12:53:53 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2020-12-17 12:53:53 +0000
commitc88c50520f7b50a73edcb832cf311d30b0becde1 (patch)
treecbf76d2c04f6dc988baf9430ad8c29ac85aea551 /tests/tgeneric.c
parent126195d82428e4b56b546e639b9e0d5678107b1a (diff)
downloadmpfr-c88c50520f7b50a73edcb832cf311d30b0becde1.tar.gz
For the generic tests, output the number of normal cases and the total
if the MPFR_TGENERIC_STAT environment variable is defined. Added description to the README.dev file. git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14221 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tgeneric.c')
-rw-r--r--tests/tgeneric.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/tgeneric.c b/tests/tgeneric.c
index d49ab3b67..cd7665c4b 100644
--- a/tests/tgeneric.c
+++ b/tests/tgeneric.c
@@ -785,6 +785,10 @@ test_generic (mpfr_prec_t p0, mpfr_prec_t p1, unsigned int nmax)
}
}
+if (getenv ("MPFR_TGENERIC_STAT") != NULL)
+ printf ("tgeneric: normal cases / total = %lu / %lu in %s\n",
+ ctrn, ctrt, __func__);
+
#ifndef TGENERIC_NOWARNING
if (3 * ctrn < 2 * ctrt)
printf ("Warning! Too few normal cases in generic tests (%lu / %lu)\n",