From: Andrea Cervesato via ltp <ltp@lists.linux.it>
To: 成渭滨 <chengweibin@uniontech.com>, ltp@lists.linux.it
Cc: 成渭滨 <chengweibin@uniontech.com>
Subject: Re: [LTP] [PATCH v1] Change the fd validity check to < 0
Date: Thu, 12 Mar 2026 12:52:04 +0000 [thread overview]
Message-ID: <69b2b6f6.050a0220.2bf2a2.e73f@mx.google.com> (raw)
In-Reply-To: <20260305062347.449223-1-chengweibin@uniontech.com>
Hi!
> ---
> testcases/kernel/controllers/cgroup/cgroup_core02.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/testcases/kernel/controllers/cgroup/cgroup_core02.c b/testcases/kernel/controllers/cgroup/cgroup_core02.c
> index aba387197..a5c8c9684 100644
> --- a/testcases/kernel/controllers/cgroup/cgroup_core02.c
> +++ b/testcases/kernel/controllers/cgroup/cgroup_core02.c
> @@ -77,8 +77,8 @@ static void test_lesser_ns_open(void)
> SAFE_MUNMAP(stack, STACK_SIZE);
>
> for (i = 0; i < targ.loops; i++) {
> - if (targ.fds[i] < 1) {
> - tst_res(TFAIL, "unexpected negative fd %d", targ.fds[i]);
> + if (targ.fds[i] < 0) {
> + tst_res(TFAIL, "unexpected invalid fd %d", targ.fds[i]);
> exit(1);
> }
>
> --
> 2.20.1
>
>
> --
> Mailing list info: https://lists.linux.it/listinfo/ltp
Technically, the message is not matching the logic, but is there a particular
case why you think this patch is needed?
Kind regards,
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com
--
Mailing list info: https://lists.linux.it/listinfo/ltp
prev parent reply other threads:[~2026-03-12 12:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-05 6:23 [LTP] [PATCH v1] Change the fd validity check to < 0 成渭滨
2026-03-12 12:52 ` Andrea Cervesato via ltp [this message]
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=69b2b6f6.050a0220.2bf2a2.e73f@mx.google.com \
--to=ltp@lists.linux.it \
--cc=andrea.cervesato@suse.com \
--cc=chengweibin@uniontech.com \
/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