test: Fix solid-test for big-endian targets
authorBen Avison <bavison@riscosopen.org>
Fri, 29 May 2015 15:20:43 +0000 (16:20 +0100)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Mon, 1 Jun 2015 10:11:15 +0000 (13:11 +0300)
commit62a772f2ea9ec14b0240c0cc62e174ffa98ee2cc
treea9d1f71c969b533421b92b4c96fd3f0199b421af
parent82f9b4faaf1aa63ec26b0dfd227f1a8e5e139ae2
test: Fix solid-test for big-endian targets

When generating test data, we need to make sure the interpretation of
the data is the same regardless of endianess. That is, the pixel value
for each channel is the same on both little and big-endians.

This fixes a test failure on ppc64 (big-endian).

Tested-by: Fernando Seiti Furusato <ferseiti@linux.vnet.ibm.com> (ppc64le, ppc64, powerpc)
Tested-by: Ben Avison <bavison@riscosopen.org> (armv6l, armv7l, i686)
[Pekka: added commit message]
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Tested-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> (x86_64)
test/solid-test.c