From: Petr Vorel <pvorel@suse.cz>
To: Andrea Cervesato <andrea.cervesato@suse.de>
Cc: Linux Test Project <ltp@lists.linux.it>
Subject: Re: [LTP] [PATCH 2/9] doc: Correct guide and API descriptions
Date: Thu, 10 Sep 2026 21:32:31 +0200 [thread overview]
Message-ID: <20260910193231.GB255237@pevik> (raw)
In-Reply-To: <20260910-fix_documentation-v1-2-44313069bbe8@suse.com>
Hi Andrea,
Again, very good catches. Thank you!
Reviewed-by: Petr Vorel <pvorel@suse.cz>
...
> diff --git a/doc/developers/build_system.rst b/doc/developers/build_system.rst
> index 8af431517..e62db7d97 100644
> --- a/doc/developers/build_system.rst
> +++ b/doc/developers/build_system.rst
> @@ -135,7 +135,7 @@ been fulfilled (libraries, headers, etc).
> * - $(CC)
> - The system C compiler
> - * - $(CCP)
> + * - $(CPP)
+1 (obviously nobody reads the docs as no human found that :)).
> +++ b/doc/developers/test_case_tutorial.rst
Test case tutorial would deserve update (some things are updated.
Also it might concentrate too much on git skills.
Also, it'd be nice to use link functions (tst_brk(), tst_res(), SAFE_CLOSE())
and TINFO/TCONF/... to kerneldoc, but I can do it later.
> @@ -205,7 +205,7 @@ please do:
> This should build the test and then run it. However, even though the test is
> in :master:`testcases/kernel/syscalls` directory it won't be automatically run
> -as part of the syscalls test group (e.g. not run via ``kirk -f math``).
> +as part of the syscalls test group (e.g. not run via ``kirk -f syscalls``).
> For this we need to add it to the runtest file. So open :master:`runtest/syscalls`
> and add the lines starting with a ``+``.
> @@ -292,7 +292,7 @@ Check coding style with ``make check``.
> Install the LTP and run the test with runtest
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> -Run ``statx01`` on its own, also using ``-I0`` amd ``-I10``.
> +Run ``statx01`` on its own, also using ``-i 10`` and ``-I 10``.
nit: Both ways are working, I usually use the shorter variant (-i0).
> Call the system call
> --------------------
> @@ -435,7 +435,7 @@ there is a system in place to handle it.
> .min_kver = "4.11",
> };
> -The ``TEST`` macro sets ``TST_RET`` to the return value of ``tst_statx()`` and
> +The ``TEST`` macro sets ``TST_RET`` to the return value of ``sys_statx()`` and
> ``TST_ERR`` to the value of ``errno`` immediately after the functions
> return. This is mainly just for convenience, although it potentially could
> have other uses.
> @@ -589,6 +589,9 @@ again on the hard-link, then ``stat`` the file".
> #define LNAME "file_to_stat_link"
> + static int fd = -1;
> + static int lfd = -1;
> +
> ...
> static void setup(void)
> @@ -600,10 +603,10 @@ again on the hard-link, then ``stat`` the file".
While you're at it, could you please fix ... indent?
Kind regards,
Petr
+++ doc/developers/test_case_tutorial.rst
@@ -612,7 +612,7 @@ again on the hard-link, then ``stat`` the file".
static void run(void)
{
- ...
+ ...
TEST(sys_statx(AT_FDCWD, LNAME, 0, STATX_BASIC_STATS, &statxbuf));
if (TST_RET == 0)
> static void cleanup(void)
> {
> - if (lfd != 0)
> + if (lfd != -1)
> SAFE_CLOSE(lfd);
> - if (fd != 0)
> + if (fd != -1)
> SAFE_CLOSE(fd);
> }
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2026-09-10 19:33 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-10 8:33 [LTP] [PATCH 0/9] doc: Improve and fix documentation and API comments Andrea Cervesato
2026-09-10 8:33 ` [LTP] [PATCH 1/9] doc: Fix examples and generated links Andrea Cervesato
2026-09-10 10:47 ` [LTP] " linuxtestproject.agent
2026-09-10 19:07 ` [LTP] [PATCH 1/9] " Petr Vorel
2026-09-10 8:33 ` [LTP] [PATCH 2/9] doc: Correct guide and API descriptions Andrea Cervesato
2026-09-10 19:32 ` Petr Vorel [this message]
2026-09-10 8:33 ` [LTP] [PATCH 3/9] doc: Clarify API coverage and navigation Andrea Cervesato
2026-09-10 19:52 ` Petr Vorel
2026-09-11 6:57 ` Andrea Cervesato via ltp
2026-09-10 8:33 ` [LTP] [PATCH 4/9] include: Document assertion API macros Andrea Cervesato
2026-09-10 8:33 ` [LTP] [PATCH 5/9] include: Document filesystem test utilities Andrea Cervesato
2026-09-10 8:33 ` [LTP] [PATCH 6/9] include: Document memory " Andrea Cervesato
2026-09-10 8:33 ` [LTP] [PATCH 7/9] include: Document safe file operations Andrea Cervesato
2026-09-10 8:33 ` [LTP] [PATCH 8/9] doc: Document CPU and common test helpers Andrea Cervesato
2026-09-10 8:33 ` [LTP] [PATCH 9/9] include: Fix API comment spelling and style Andrea Cervesato
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=20260910193231.GB255237@pevik \
--to=pvorel@suse.cz \
--cc=andrea.cervesato@suse.de \
--cc=ltp@lists.linux.it \
/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