From: Eugene Syromyatnikov Date: Wed, 21 Sep 2016 21:20:53 +0000 (+0300) Subject: tests: make magic values in ioctl_block test distinctive X-Git-Tag: v4.14~35 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aefb09b9cc0c59b3d2f48234d184feefe23e777e;p=strace 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. --- diff --git a/tests/ioctl_block.c b/tests/ioctl_block.c index 3dc030de..07e7d34d 100644 --- a/tests/ioctl_block.c +++ b/tests/ioctl_block.c @@ -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[] = {