Commit 74e059f4 authored by Thanassis Tsiodras's avatar Thanassis Tsiodras

Notify about additional test.

parent 7cce360d
Pipeline #1209 skipped
......@@ -96,6 +96,30 @@ void memcheck()
pw++;
}
}
// A final run storing big numbers.
printf("[MEMCHECK] Checking memory by writing 32-bit numbers from 0 up to %d...\n", space/4);
{
uint32_t *pw = p;
unsigned words = space/4;
while(words--) {
*pw++ = words;
}
pw = p;
words = space/4;
// Verifying the big numbers
while(words--) {
if (*pw != words) {
printf(
"[MEMCHECK] Failed with big value 0x%x at offset 0x%x\n",
words, (unsigned)pw);
fflush(stdout);
exit(1);
}
pw++;
}
}
free(p);
#else
puts("[MEMCHECK] Memory checks disabled in release mode.");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment