MCPcopy Create free account
hub / github.com/F-Stack/f-stack / memtest

Function memtest

app/redis-6.2.6/src/memtest.c:349–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348
349void memtest(size_t megabytes, int passes) {
350#if !defined(__HAIKU__)
351 if (ioctl(1, TIOCGWINSZ, &ws) == -1) {
352 ws.ws_col = 80;
353 ws.ws_row = 20;
354 }
355#else
356 ws.ws_col = 80;
357 ws.ws_row = 20;
358#endif
359 memtest_alloc_and_test(megabytes,passes);
360 printf("\nYour memory passed this test.\n");
361 printf("Please if you are still in doubt use the following two tools:\n");
362 printf("1) memtest86: http://www.memtest86.com/\n");
363 printf("2) memtester: http://pyropus.ca/software/memtester/\n");
364 exit(0);
365}

Callers 1

mainFunction · 0.85

Calls 3

memtest_alloc_and_testFunction · 0.85
ioctlFunction · 0.70
printfFunction · 0.50

Tested by

no test coverage detected