[Gmp-commit] /var/hg/gmp: Fix t-istream -s

mercurial at gmplib.org mercurial at gmplib.org
Sat Mar 12 11:26:10 CET 2011


details:   /var/hg/gmp/rev/244b39f54f70
changeset: 14047:244b39f54f70
user:      Marc Glisse <marc.glisse at inria.fr>
date:      Sat Mar 12 11:26:03 2011 +0100
description:
Fix t-istream -s

diffstat:

 ChangeLog              |  4 ++++
 tests/cxx/t-istream.cc |  3 ++-
 2 files changed, 6 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 8e5e1f8eacf9 -r 244b39f54f70 ChangeLog
--- a/ChangeLog	Sat Mar 12 11:07:51 2011 +0100
+++ b/ChangeLog	Sat Mar 12 11:26:03 2011 +0100
@@ -1,3 +1,7 @@
+2011-03-12  Marc Glisse  <marc.glisse at inria.fr>
+
+	* tests/cxx/t-istream.cc: Restrict mpq test in t-istream -s.
+
 2011-03-12  Marc Glisse  <marc.glisse at inria.fr>
 
 	* gmpxx.h: Remove leftover #undefs.
diff -r 8e5e1f8eacf9 -r 244b39f54f70 tests/cxx/t-istream.cc
--- a/tests/cxx/t-istream.cc	Sat Mar 12 11:07:51 2011 +0100
+++ b/tests/cxx/t-istream.cc	Sat Mar 12 11:26:03 2011 +0100
@@ -322,7 +322,8 @@
 
       if (option_check_standard
           && mpz_fits_slong_p (mpq_numref(want))
-          && mpz_cmp_ui (mpq_denref(want), 1L) == 0)
+          && mpz_cmp_ui (mpq_denref(want), 1L) == 0
+          && strchr (data[i].input, '/') == NULL)
         {
           istringstream  input (data[i].input);
           input.flags (data[i].flags);


More information about the gmp-commit mailing list