| 347 | } |
| 348 | |
| 349 | void 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 | } |
no test coverage detected