[Gmp-commit] /var/hg/gmp: Print any non-standard repetitions.
mercurial at gmplib.org
mercurial at gmplib.org
Sat Feb 11 16:17:13 CET 2012
details: /var/hg/gmp/rev/d535babf9ec9
changeset: 14627:d535babf9ec9
user: Torbjorn Granlund <tege at gmplib.org>
date: Sat Feb 11 16:17:09 2012 +0100
description:
Print any non-standard repetitions.
diffstat:
ChangeLog | 4 ++++
tests/tests.h | 5 +++++
2 files changed, 9 insertions(+), 0 deletions(-)
diffs (41 lines):
diff -r 69be3612ec0d -r d535babf9ec9 ChangeLog
--- a/ChangeLog Sat Feb 11 16:15:52 2012 +0100
+++ b/ChangeLog Sat Feb 11 16:17:09 2012 +0100
@@ -1,3 +1,7 @@
+2012-02-11 Torbjorn Granlund <tege at gmplib.org>
+
+ * tests/tests.h (TESTS_REPS): Print any non-standard repetitions.
+
2012-02-11 Marco Bodrato <bodrato at mail.dm.unipi.it>
* doc/gmp.texi (Factorial): Shortly describe current algorithm.
diff -r 69be3612ec0d -r d535babf9ec9 tests/tests.h
--- a/tests/tests.h Sat Feb 11 16:15:52 2012 +0100
+++ b/tests/tests.h Sat Feb 11 16:17:09 2012 +0100
@@ -503,6 +503,7 @@
do { \
char *envval, *end; \
long repfactor; \
+ int reps_nondefault = 0; \
if (argc > 1) \
{ \
count = strtol (argv[1], &end, 0); \
@@ -513,6 +514,7 @@
} \
argv++; \
argc--; \
+ reps_nondefault = 1; \
} \
envval = getenv ("GMP_CHECK_REPFACTOR"); \
if (envval != NULL) \
@@ -524,7 +526,10 @@
exit (1); \
} \
count *= repfactor; \
+ reps_nondefault = 1; \
} \
+ if (reps_nondefault) \
+ printf ("Running test with %ld repetitions (include this in bug reports)\n", count); \
} while (0)
More information about the gmp-commit
mailing list