tests/tcg: Extend file in linux-madvise.c
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 2 Jan 2024 01:58:00 +0000 (12:58 +1100)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 29 Feb 2024 21:35:37 +0000 (11:35 -1000)
commit6ada8619510002e7b0ad5925597232c750282592
tree673159ed9708b177649d19f1c70e5c90a3649ddb
parente9206163d9d9cdd962abb00e40b22141a5e29684
tests/tcg: Extend file in linux-madvise.c

When guest page size > host page size, this test can fail
due to the SIGBUS protection hack.  Avoid this by making
sure that the file size is at least one guest page.

Visible with alpha guest on x86_64 host.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Ilya Leoshkevich <iii@linux.ibm.com>
Acked-by: Helge Deller <deller@gmx.de>
Message-Id: <20240102015808.132373-26-richard.henderson@linaro.org>
tests/tcg/multiarch/linux/linux-madvise.c