public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH v1] Check swap availability in process_madvise01
@ 2023-09-04 12:54 Andrea Cervesato
  2023-09-04 13:13 ` Cyril Hrubis
  2023-10-19  5:42 ` Jan Stancek
  0 siblings, 2 replies; 3+ messages in thread
From: Andrea Cervesato @ 2023-09-04 12:54 UTC (permalink / raw)
  To: ltp

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


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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [LTP] [PATCH v1] Check swap availability in process_madvise01
  2023-09-04 12:54 [LTP] [PATCH v1] Check swap availability in process_madvise01 Andrea Cervesato
@ 2023-09-04 13:13 ` Cyril Hrubis
  2023-10-19  5:42 ` Jan Stancek
  1 sibling, 0 replies; 3+ messages in thread
From: Cyril Hrubis @ 2023-09-04 13:13 UTC (permalink / raw)
  To: Andrea Cervesato; +Cc: ltp

Hi!
Pushed along with the patch that adds the library support for
.min_swap_avail, thanks.

-- 
Cyril Hrubis
chrubis@suse.cz

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LTP] [PATCH v1] Check swap availability in process_madvise01
  2023-09-04 12:54 [LTP] [PATCH v1] Check swap availability in process_madvise01 Andrea Cervesato
  2023-09-04 13:13 ` Cyril Hrubis
@ 2023-10-19  5:42 ` Jan Stancek
  1 sibling, 0 replies; 3+ messages in thread
From: Jan Stancek @ 2023-10-19  5:42 UTC (permalink / raw)
  To: Andrea Cervesato; +Cc: ltp

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
>


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-10-19  5:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-04 12:54 [LTP] [PATCH v1] Check swap availability in process_madvise01 Andrea Cervesato
2023-09-04 13:13 ` Cyril Hrubis
2023-10-19  5:42 ` Jan Stancek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox