tests: Add read_unaligned testcase
authorMark Wielaard <mark@klomp.org>
Sun, 25 Oct 2020 19:40:33 +0000 (20:40 +0100)
committerMark Wielaard <mark@klomp.org>
Thu, 29 Oct 2020 23:12:05 +0000 (00:12 +0100)
commit4c39dc18bbba4801c016c0b24d03d697fb14aa24
tree68fdd9b49ad74d261f638f837e4f55738e246c0f
parent70343f484481184f9fa216071399690ff833256b
tests: Add read_unaligned testcase

Run tests/read_unaligned 1 on a big endian and little endian machine
to generate the le_mem and be_mem arrays. The one byte variants are
kind of impossible to get wrong, but including them makes sure the
other variants are not naturally aligned in memory.

Signed-off-by: Mark Wielaard <mark@klomp.org>
tests/ChangeLog
tests/Makefile.am
tests/read_unaligned.c [new file with mode: 0644]