[LTP] [PATCH 0/3] syscalls/mmap: Refactor a few tests to the new API

Ricardo B. Marliere via ltp
2025-01-14T22:27:07Z

This patchset refactor a few mmap tests that are still in the old API. I
left mmap11 alone because it seems to be disabled [1]. For mmap03, I added
x86_64 and parsed CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS after doing some
manual tests in my host and seeing that behavior should be expected in
modern systems.

[1]: https://github.com/linux-test-project/ltp/blob/master/runtest/syscalls#L835

Signed-off-by: Ricardo B. Marliere <rbm@suse.com>
---
Ricardo B. Marliere (3):
mmap001: Convert to new API
mmap03: Convert to new API
mmap10: Convert to new API

testcases/kernel/syscalls/mmap/mmap001.c | 206 ++++++-----------------
testcases/kernel/syscalls/mmap/mmap03.c | 274 +++++++++++--------------------
testcases/kernel/syscalls/mmap/mmap10.c | 198 ++++++++--------------
3 files changed, 214 insertions(+), 464 deletions(-)
---
base-commit: 6fe8aa186559784f0394cd449cba6c53342790ec
change-id: 20250114-conversions-a60f770d8db1

Best regards,
--
Ricardo B. Marliere <rbm@suse.com>