Linux Test Project
 help / color / mirror / Atom feed
From: Andrea Cervesato via ltp <ltp@lists.linux.it>
To: Petr Vorel <pvorel@suse.cz>, Martin Doucha <mdoucha@suse.cz>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v6] Refactor fork14 using new LTP API
Date: Tue, 7 May 2024 09:24:19 +0200	[thread overview]
Message-ID: <bbcfed6d-caff-43f8-96ce-77e6cb6afd2a@suse.com> (raw)
In-Reply-To: <20240506202614.GC38981@pevik>

Hi!

On 5/6/24 22:26, Petr Vorel wrote:
> Hi Andrea, Martin,
>
>> Hi,
>> Reviewed-by: Martin Doucha <mdoucha@suse.cz>
> +1
>
> ...
>
> Reviewed-by: Petr Vorel <pvorel@suse.cz>
>>> +
>>> +static struct tst_test test = {
>>> +	.test_all = run,
>>> +	.setup = setup,
>>> +	.cleanup = cleanup,
>>> +	.forks_child = 1,
>>> +	.skip_in_compat = 1,
> BTW test on x86 (i.e. true 64 bit) behaves exactly the same as on compat mode:
>
> tst_test.c:1614: TINFO: Timeout per run is 0h 00m 30s
> fork14.c:46: TINFO: mmap() failed
> fork14.c:46: TINFO: mmap() failed
> fork14.c:46: TINFO: mmap() failed
> fork14.c:46: TINFO: mmap() failed
> fork14.c:46: TINFO: mmap() failed
> fork14.c:46: TINFO: mmap() failed
> fork14.c:46: TINFO: mmap() failed
> fork14.c:46: TINFO: mmap() failed
> fork14.c:46: TINFO: mmap() failed
> fork14.c:46: TINFO: mmap() failed
> fork14.c:46: TINFO: mmap() failed
> fork14.c:49: TCONF: mmap() fails too many times, so it's almost impossible to get a vm_area_struct sized 16TB.
>
> IMHO we should whitelist it as well, I can change before merge with diff below.
>
> (More elegant way would be to add .skip_in_32bit.)
>
> Kind regards,
> Petr
>
> +++ testcases/kernel/syscalls/fork/fork14.c
> @@ -18,6 +18,8 @@
>   #include <stdlib.h>
>   #include <sys/wait.h>
>   
> +#ifndef __i386__
TST_ABI32 is not enough? What about ".skip_in_compat"?
> +
>   #define LARGE		(16 * 1024)
>   #define EXTENT		(16 * 1024 + 10)
>   
> @@ -121,3 +123,6 @@ static struct tst_test test = {
>   		{}
>   	}
>   };
> +#else
> +TST_TEST_TCONF("Not supported on x86 in 32-bit");
> +#endif

Andrea


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

  reply	other threads:[~2024-05-07  7:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-03  8:16 [LTP] [PATCH v6] Refactor fork14 using new LTP API Andrea Cervesato
2024-05-03 12:49 ` Martin Doucha
2024-05-06 20:26   ` Petr Vorel
2024-05-07  7:24     ` Andrea Cervesato via ltp [this message]
2024-05-15 14:22       ` Petr Vorel
2024-05-15 14:25         ` Cyril Hrubis
2024-05-15 23:10           ` Petr Vorel
2024-05-15 14:25         ` Andrea Cervesato via ltp
2024-05-15 13:17 ` Petr Vorel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bbcfed6d-caff-43f8-96ce-77e6cb6afd2a@suse.com \
    --to=ltp@lists.linux.it \
    --cc=andrea.cervesato@suse.com \
    --cc=mdoucha@suse.cz \
    --cc=pvorel@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox