summaryrefslogtreecommitdiff
path: root/tests/tget_flt.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2012-07-06 14:43:44 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2012-07-06 14:43:44 +0000
commit83d98199672b93aa12c17467f7143db71f0d1a4b (patch)
tree02bfc5f58a58bdc54272ff136888fa8075b64688 /tests/tget_flt.c
parent299dd2f37f38faed184781fa1a87c4604aa5e0f0 (diff)
downloadmpfr-83d98199672b93aa12c17467f7143db71f0d1a4b.tar.gz
[tests/{tset_d.c,tget_flt.c}] Disabled two tests when HAVE_SIGNEDZ
isn't defined, because these tests rely on signed zeros. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8340 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tget_flt.c')
-rw-r--r--tests/tget_flt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/tget_flt.c b/tests/tget_flt.c
index d49ac13e4..0d6e954a9 100644
--- a/tests/tget_flt.c
+++ b/tests/tget_flt.c
@@ -91,6 +91,7 @@ main (void)
exit (1);
}
+#ifdef HAVE_SIGNEDZ
mpfr_set_ui (x, 0, MPFR_RNDN);
mpfr_neg (x, x, MPFR_RNDN);
f = mpfr_get_flt (x, MPFR_RNDN);
@@ -100,6 +101,7 @@ main (void)
printf ("Error for mpfr_set_flt(mpfr_get_flt(-0))\n");
exit (1);
}
+#endif /* HAVE_SIGNEDZ */
mpfr_set_ui (x, 17, MPFR_RNDN);
f = mpfr_get_flt (x, MPFR_RNDN);