[LTP] [PATCH] mmap18: Fix the doc

Andrea Cervesato andrea.cervesato@suse.com
Wed Apr 16 11:32:31 CEST 2025


Hi Ma,

I merged this  patch, as well as all the others related to tests 
description in RST format.

Kind regards,
Andrea Cervesato

On 4/11/25 09:23, Ma Xinjian via ltp wrote:
> Use :: to keep the description of stack memory map as original text when viewed in RST format.
>
> Signed-off-by: Ma Xinjian <maxj.fnst@fujitsu.com>
> ---
>   testcases/kernel/syscalls/mmap/mmap18.c | 20 ++++++++++----------
>   1 file changed, 10 insertions(+), 10 deletions(-)
>
> diff --git a/testcases/kernel/syscalls/mmap/mmap18.c b/testcases/kernel/syscalls/mmap/mmap18.c
> index 3de524ecc..5f0eee6ba 100644
> --- a/testcases/kernel/syscalls/mmap/mmap18.c
> +++ b/testcases/kernel/syscalls/mmap/mmap18.c
> @@ -28,18 +28,18 @@
>    *
>    * Kernel default `stack_guard_gap` size is `256 * getpagesize()`.
>    *
> - * The stack memory map would look like:
> + * The stack memory map would look like::
>    *
> - * |  -  -  -   reserved  size   -  -  -  |
> + *   |  -  -  -   reserved  size   -  -  -  |
>    *
> - * +-- - - - --+------------+-------------+
> - * | 256 pages |  unmapped  |   mapped    |
> - * +-- - - - --+------------+-------------+
> - *                          | mapped size |
> - * ^           |  -  -  stack size  -  -  |
> - * start
> - *             ^                          ^
> - *             stack bottom       stack top
> + *   +-- - - - --+------------+-------------+
> + *   | 256 pages |  unmapped  |   mapped    |
> + *   +-- - - - --+------------+-------------+
> + *                            | mapped size |
> + *   ^           |  -  -  stack size  -  -  |
> + *   start
> + *               ^                          ^
> + *               stack bottom       stack top
>    *
>    * **Test 2**
>    *


More information about the ltp mailing list