summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-05-19 14:50:17 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-06-03 14:43:04 +1000
commit8ef0974874f322e3ce2f3e6be4ab3c7e73a7b380 (patch)
treeca379db0f38e8b5d46526c0f50d1d0ad74fc3c23 /test
parentc5b72fd350bbdfd1facd0ddd5085f238c4cf252a (diff)
test: don't test for double alignment on i386. (#36986)
i386 is one of the few architectures that doesn't need double alignment. X.Org Bug 36986 <http://bugs.freedesktop.org/show_bug.cgi?id=36986> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test')
-rw-r--r--test/input.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/input.c b/test/input.c
index ac37d67a1..837ce49dc 100644
--- a/test/input.c
+++ b/test/input.c
@@ -1223,8 +1223,11 @@ static void dix_valuator_alloc(void)
assert(v);
assert(v->numAxes == num_axes);
+#ifndef __i386__
+ /* 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);
+#endif
num_axes ++;
}