[Gmp-commit] /var/hg/gmp: 2 new changesets

mercurial at gmplib.org mercurial at gmplib.org
Tue Jan 22 23:22:09 CET 2013


details:   /var/hg/gmp/rev/6f2ca99dbd4d
changeset: 15342:6f2ca99dbd4d
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Tue Jan 22 23:21:31 2013 +0100
description:
Delete always zero 'failures' and code depending on it.  Replace rotating progress with real measure.

details:   /var/hg/gmp/rev/8acc17bbaec5
changeset: 15343:8acc17bbaec5
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Tue Jan 22 23:21:44 2013 +0100
description:
ChangeLog

diffstat:

 ChangeLog         |   3 +++
 tests/mpz/reuse.c |  13 ++++---------
 2 files changed, 7 insertions(+), 9 deletions(-)

diffs (56 lines):

diff -r 260372123c5b -r 8acc17bbaec5 ChangeLog
--- a/ChangeLog	Tue Jan 22 21:36:23 2013 +0100
+++ b/ChangeLog	Tue Jan 22 23:21:44 2013 +0100
@@ -1,5 +1,8 @@
 2013-01-22  Torbjorn Granlund  <tege at gmplib.org>
 
+	* tests/mpz/reuse.c: Delete always zero 'failures' and code depending
+	on it.  Replace rotating progress with real measure.
+
 	* Makefile.am (check-mini-gmp): Fix typo in last change.
 
 2013-01-22  Niels Möller  <nisse at lysator.liu.se>
diff -r 260372123c5b -r 8acc17bbaec5 tests/mpz/reuse.c
--- a/tests/mpz/reuse.c	Tue Jan 22 21:36:23 2013 +0100
+++ b/tests/mpz/reuse.c	Tue Jan 22 23:21:44 2013 +0100
@@ -6,8 +6,8 @@
 	mpz_mul_si
 	mpz_addmul_ui (should this really allow a+=a*c?)
 
-Copyright 1996, 1999, 2000, 2001, 2002, 2009, 2012 Free Software Foundation,
-Inc.
+Copyright 1996, 1999, 2000, 2001, 2002, 2009, 2012, 2013 Free Software
+Foundation, Inc.
 
 This file is part of the GNU MP Library test suite.
 
@@ -210,7 +210,6 @@
   mpz_t ref1, ref2, ref3;
   mpz_t t;
   unsigned long int r1, r2;
-  long failures = 0;
   gmp_randstate_ptr rands;
   mpz_t bs;
   unsigned long bsi, size_range;
@@ -237,7 +236,7 @@
     {
       if (isatty (fileno (stdout)))
 	{
-	  printf ("\r%c", "-/|\\"[pass % 4]);
+	  printf ("\r%d/%d passes", pass, reps);
 	  fflush (stdout);
 	}
 
@@ -661,11 +660,7 @@
 	}
     }
 
-  if (failures != 0)
-    {
-      fprintf (stderr, "mpz/reuse: %ld error%s\n", failures, "s" + (failures == 1));
-      exit (1);
-    }
+  printf ("\r%20s", "");
 
   mpz_clear (bs);
   mpz_clear (in1);


More information about the gmp-commit mailing list