summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2015-07-20 21:49:28 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2015-07-20 21:49:28 +0000
commit968cda7acdce7fba09c8623182480f5859b0ef1e (patch)
tree695739e90fa621b721a5c4233c4cae599996ce6b
parente0263aed74458d29a8b976cd1491c3bd8641baa4 (diff)
downloadmpfr-968cda7acdce7fba09c8623182480f5859b0ef1e.tar.gz
[tests/tversion.c] Check and output additional mpfr_buildopt_* info.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9630 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--tests/tversion.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/tversion.c b/tests/tversion.c
index 58477cc18..d64dfb72f 100644
--- a/tests/tversion.c
+++ b/tests/tversion.c
@@ -45,6 +45,44 @@ main (void)
gmp_version);
#endif
+ if (
+#ifdef MPFR_USE_THREAD_SAFE
+ !
+#endif
+ mpfr_buildopt_tls_p ())
+ {
+ printf ("ERROR! mpfr_buildopt_tls_p() and macros"
+ " do not match!\n");
+ err = 1;
+ }
+
+ if (
+#ifdef MPFR_WANT_DECIMAL_FLOATS
+ !
+#endif
+ mpfr_buildopt_decimal_p ())
+ {
+ printf ("ERROR! mpfr_buildopt_decimal_p() and macros"
+ " do not match!\n");
+ err = 1;
+ }
+
+ if (
+#if defined(MPFR_HAVE_GMP_IMPL) || defined(WANT_GMP_INTERNALS)
+ !
+#endif
+ mpfr_buildopt_gmpinternals_p ())
+ {
+ printf ("ERROR! mpfr_buildopt_gmpinternals_p() and macros"
+ " do not match!\n");
+ err = 1;
+ }
+
+ printf ("[tversion] TLS = %s, decimal = %s, GMP internals = %s\n",
+ mpfr_buildopt_tls_p () ? "yes" : "no",
+ mpfr_buildopt_decimal_p () ? "yes" : "no",
+ mpfr_buildopt_gmpinternals_p () ? "yes" : "no");
+
if (strcmp (mpfr_buildopt_tune_case (), MPFR_TUNE_CASE) != 0)
{
printf ("ERROR! mpfr_buildopt_tune_case() and MPFR_TUNE_CASE"