Skip to content

Commit

Permalink
madvise11: Allow test to skip if MADV_SOFT_OFFLINE is not supported
Browse files Browse the repository at this point in the history
madvise11 will exit with TFAIL if CONFIG_MEMORY_FAILURE is not
configured.  Require it to be set instead.

Suggested-by: Cyril Hrubis <[email protected]>
Signed-off-by: Edward Liaw <[email protected]>
Reviewed-by: Cyril Hrubis <[email protected]>
  • Loading branch information
edliaw authored and metan-ucw committed Nov 13, 2023
1 parent a50d6c0 commit 55c77ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions testcases/kernel/syscalls/madvise/madvise11.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 55c77ed

Please sign in to comment.