tests: make magic values in ioctl_block test distinctive

* tests/ioctl.block (init_magic): Add iterator value to magic value
in order to enable detection of potential 4-byte aligned shifts.
This commit is contained in:
Eugene Syromyatnikov
2016-09-22 00:20:53 +03:00
committed by Dmitry V. Levin
parent db27247d84
commit aefb09b9cc

View File

@ -50,7 +50,7 @@ init_magic(void *addr, const unsigned int size)
const unsigned int *end = addr + size - sizeof(int);
for (; p <= end; ++p)
*(unsigned int *) p = magic;
*(unsigned int *) p = magic + (p - (unsigned int *) addr);
}
static struct xlat block_argless[] = {