summaryrefslogtreecommitdiff
path: root/tests/tests.h
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gmplib.org>2012-02-11 16:17:09 +0100
committerTorbjorn Granlund <tege@gmplib.org>2012-02-11 16:17:09 +0100
commitc3ab7e8e1b002c570d9d82f06d6d3c862e4418b1 (patch)
tree61787af5873c159d8e8626ca271633a8db679b33 /tests/tests.h
parentdfd5e82dc18215fc5e9d3090ec996b9a5afd8f86 (diff)
downloadgmp-c3ab7e8e1b002c570d9d82f06d6d3c862e4418b1.tar.gz
Print any non-standard repetitions.
Diffstat (limited to 'tests/tests.h')
-rw-r--r--tests/tests.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/tests.h b/tests/tests.h
index 75b546319..cfca1ac3b 100644
--- a/tests/tests.h
+++ b/tests/tests.h
@@ -503,6 +503,7 @@ istringstream : public std::istrstream {
do { \
char *envval, *end; \
long repfactor; \
+ int reps_nondefault = 0; \
if (argc > 1) \
{ \
count = strtol (argv[1], &end, 0); \
@@ -513,6 +514,7 @@ istringstream : public std::istrstream {
} \
argv++; \
argc--; \
+ reps_nondefault = 1; \
} \
envval = getenv ("GMP_CHECK_REPFACTOR"); \
if (envval != NULL) \
@@ -524,7 +526,10 @@ istringstream : public std::istrstream {
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)