[LTP] [PATCH v1] Check swap availability in process_madvise01
Jan Stancek
jstancek@redhat.com
Thu Oct 19 07:42:51 CEST 2023
On Mon, Sep 4, 2023 at 2:54 PM Andrea Cervesato
<andrea.cervesato@suse.de> wrote:
>
> 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,
Should this be MEM_CHILD / TST_MB ? The comment in include/tst_test.h
says "Minimum size(MB) of SwapFree"
> + .needs_kconfigs = (const char *[]) {
> + "CONFIG_SWAP=y",
> + NULL
> + },
> };
> --
> 2.35.3
>
>
> --
> Mailing list info: https://lists.linux.it/listinfo/ltp
>
More information about the ltp
mailing list