Skip to contentSkip to conversation

madvise11: Allow test to skip if MADV_SOFT_OFFLINE is not supported

PATCH In review Edward Liaw via ltp 2 participants 2 messages Nov 7, 2023 – Nov 13, 2023

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 madvise11: Allow test to skip if MADV_SOFT_OFFLINE is not supported

madvise11 will exit with TFAIL if CONFIG_MEMORY_FAILURE is not configured. Require it to be set instead.

---
 testcases/kernel/syscalls/madvise/madvise11.c | 4 ++++
 1 file changed, 4 insertions(+)
testcases/kernel/syscalls/madvise/madvise11.c +4 -0
index 74caadc44..7a12abf20 100644
@@ -426,6 +426,10 @@ static struct tst_test test = {
 		"rmmod",
 		NULL
 	},
+	.needs_kconfigs = (const char *[]) {
+		"CONFIG_MEMORY_FAILURE=y",
+		NULL
+	},
 	.max_runtime = 30,
 	.needs_checkpoints = 1,
 	.setup = setup,
Signature · 5 lines
2.42.0.869.gea05f2083d-goog


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp