summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gmplib.org>2013-01-22 23:21:31 +0100
committerTorbjorn Granlund <tege@gmplib.org>2013-01-22 23:21:31 +0100
commit437ffbc6a8a43cfc35bbe6fbafc965137af44479 (patch)
tree7ba5fc5b1536e75aba2660c7377aa60ddd1b2ece
parent90ff45d82c7778d9c340134aed73b3fd8f69d3b4 (diff)
downloadgmp-437ffbc6a8a43cfc35bbe6fbafc965137af44479.tar.gz
Delete always zero 'failures' and code depending on it. Replace rotating progress with real measure.
-rw-r--r--tests/mpz/reuse.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/tests/mpz/reuse.c b/tests/mpz/reuse.c
index 2a07336a1..6981ca045 100644
--- a/tests/mpz/reuse.c
+++ b/tests/mpz/reuse.c
@@ -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 @@ main (int argc, char **argv)
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 @@ main (int argc, char **argv)
{
if (isatty (fileno (stdout)))
{
- printf ("\r%c", "-/|\\"[pass % 4]);
+ printf ("\r%d/%d passes", pass, reps);
fflush (stdout);
}
@@ -661,11 +660,7 @@ main (int argc, char **argv)
}
}
- 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);