Adds a basic memory test on the used memory buffers.

This commit is contained in:
Andrea Mazzoleni 2013-10-27 17:31:10 +01:00
parent e7804a5f8f
commit 7414f8daec
8 changed files with 67 additions and 0 deletions

View file

@ -70,6 +70,7 @@ void speed(void)
unsigned char* zero;
buffer = malloc_nofail_vector_align(diskmax + LEV_MAX + 1, block_size, &buffer_alloc);
mtest_vector(buffer, diskmax + LEV_MAX + 1, block_size);
/* initialize with fixed data */
for(i=0;i<diskmax+LEV_MAX;++i) {