tests: add check_invalid_maps to test-mmap
commit28cbb997d66e4d1904a231bef1ce15c2cbb6bf73
authorAlex Bennée <alex.bennee@linaro.org>
Mon, 30 Jul 2018 13:43:21 +0000 (30 14:43 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Tue, 31 Jul 2018 07:57:25 +0000 (31 09:57 +0200)
tree75608a631ef99025e7624b7b1d93c88a4e15bdf2
parent38138fab93584ad3560ddfcd70efbd5bb6b4a6f0
tests: add check_invalid_maps to test-mmap

This adds a test to make sure we fail properly for a 0 length mmap.
There are most likely other failure conditions we should also check.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Cc: umarcor <1783362@bugs.launchpad.net>
Message-Id: <20180730134321.19898-3-alex.bennee@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
tests/tcg/multiarch/test-mmap.c