Merge commits '3a106966 8f0c6f15 ' into temp-merge-851

This commit is contained in:
Jonas Nick
2020-12-04 11:50:18 +00:00
3 changed files with 38 additions and 24 deletions

View File

@@ -5802,6 +5802,15 @@ int main(int argc, char **argv) {
/* find iteration count */
if (argc > 1) {
count = strtol(argv[1], NULL, 0);
} else {
const char* env = getenv("SECP256K1_TEST_ITERS");
if (env) {
count = strtol(env, NULL, 0);
}
}
if (count <= 0) {
fputs("An iteration count of 0 or less is not allowed.\n", stderr);
return EXIT_FAILURE;
}
printf("test count = %i\n", count);