More memory tests implemented. Default number of iterations lowered to a more acceptable value of 50.

This commit is contained in:
antirez
2012-03-18 18:03:27 +01:00
parent a5801142a4
commit d033ccb0af
2 changed files with 67 additions and 10 deletions

View File

@ -2313,7 +2313,7 @@ int main(int argc, char **argv) {
strcmp(argv[1], "-h") == 0) usage();
if (strcmp(argv[1], "--test-memory") == 0) {
if (argc == 3) {
memtest(atoi(argv[2]),300);
memtest(atoi(argv[2]),50);
exit(0);
} else {
fprintf(stderr,"Please specify the amount of memory to test in megabytes.\n");