summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNobuhiro Iwamatsu <iwamatsu@nigauri.org>2011-08-09 11:00:34 +0900
committerPeter Hutterer <peter.hutterer@who-t.net>2011-08-22 15:56:53 +1000
commitb29ce0726d55ec41cfbce0814e21b0217ef64efe (patch)
tree09aab1effb9d47fdfe2d80c14d952665056ab93f /test
parent3be379f5076566edaf92c27df5a4d447bcf5d015 (diff)
Disable check of double-aligned in test/input.c on Renesas SH
Renesas SH is not aligned at size of double. When structure has double value, It is aligned in 4byte (long). Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test')
-rw-r--r--test/input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/input.c b/test/input.c
index c2b0eb012..5d4cbf686 100644
--- a/test/input.c
+++ b/test/input.c
@@ -1223,7 +1223,7 @@ static void dix_valuator_alloc(void)
assert(v);
assert(v->numAxes == num_axes);
-#ifndef __i386__
+#if !defined(__i386__) && !defined(__sh__)
/* must be double-aligned on 64 bit */
assert(((void*)v->axisVal - (void*)v) % sizeof(double) == 0);
assert(((void*)v->axes - (void*)v) % sizeof(double) == 0);