diff options
author | Torbjorn Granlund <tege@gmplib.org> | 2012-02-11 16:17:09 +0100 |
---|---|---|
committer | Torbjorn Granlund <tege@gmplib.org> | 2012-02-11 16:17:09 +0100 |
commit | c3ab7e8e1b002c570d9d82f06d6d3c862e4418b1 (patch) | |
tree | 61787af5873c159d8e8626ca271633a8db679b33 /tests/tests.h | |
parent | dfd5e82dc18215fc5e9d3090ec996b9a5afd8f86 (diff) | |
download | gmp-c3ab7e8e1b002c570d9d82f06d6d3c862e4418b1.tar.gz |
Print any non-standard repetitions.
Diffstat (limited to 'tests/tests.h')
-rw-r--r-- | tests/tests.h | 5 |
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) |