From aefb09b9cc0c59b3d2f48234d184feefe23e777e Mon Sep 17 00:00:00 2001 From: Eugene Syromyatnikov Date: Thu, 22 Sep 2016 00:20:53 +0300 Subject: [PATCH] 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. --- tests/ioctl_block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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[] = { -- 2.50.1