diff mbox series

[v2] madvise11: Allow test to skip if MADV_SOFT_OFFLINE is not supported

Message ID 20231107184113.2627463-1-edliaw@google.com
State Accepted
Headers show
Series [v2] madvise11: Allow test to skip if MADV_SOFT_OFFLINE is not supported | expand

Commit Message

Edward Liaw Nov. 7, 2023, 6:41 p.m. UTC
madvise11 will exit with TFAIL if CONFIG_MEMORY_FAILURE is not
configured.  Require it to be set instead.

Suggested-by: Cyril Hrubis <chrubis@suse.cz>
Signed-off-by: Edward Liaw <edliaw@google.com>
---
 testcases/kernel/syscalls/madvise/madvise11.c | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Cyril Hrubis Nov. 13, 2023, 10:27 a.m. UTC | #1
Hi!
Applied, thanks.
diff mbox series

Patch

diff --git a/testcases/kernel/syscalls/madvise/madvise11.c b/testcases/kernel/syscalls/madvise/madvise11.c
index 74caadc44..7a12abf20 100644
--- a/testcases/kernel/syscalls/madvise/madvise11.c
+++ b/testcases/kernel/syscalls/madvise/madvise11.c
@@ -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,