forbid a test iteration of 0 or less
This commit is contained in:
parent
0ce4554881
commit
f4fa8d226a
@ -5632,6 +5632,10 @@ int main(int argc, char **argv) {
|
|||||||
count = strtol(env, NULL, 0);
|
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);
|
printf("test count = %i\n", count);
|
||||||
|
|
||||||
/* find random seed */
|
/* find random seed */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user