[LTP] [PATCH v1] Check swap availability in process_madvise01

Andrea Cervesato andrea.cervesato@suse.de
Mon Sep 4 14:54:24 CEST 2023


From: Andrea Cervesato <andrea.cervesato@suse.com>

Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
---
 .../kernel/syscalls/process_madvise/process_madvise01.c      | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/testcases/kernel/syscalls/process_madvise/process_madvise01.c b/testcases/kernel/syscalls/process_madvise/process_madvise01.c
index 207dc028e..322b4cf60 100644
--- a/testcases/kernel/syscalls/process_madvise/process_madvise01.c
+++ b/testcases/kernel/syscalls/process_madvise/process_madvise01.c
@@ -123,4 +123,9 @@ static struct tst_test test = {
 	.min_kver = "5.10",
 	.needs_checkpoints = 1,
 	.needs_root = 1,
+	.min_swap_avail = MEM_CHILD / TST_KB,
+	.needs_kconfigs = (const char *[]) {
+		"CONFIG_SWAP=y",
+		NULL
+	},
 };
-- 
2.35.3



More information about the ltp mailing list