From: Petr Vorel <pvorel@suse.cz>
To: Andrea Cervesato <andrea.cervesato@suse.com>
Cc: Linux Test Project <ltp@lists.linux.it>
Subject: Re: [LTP] [PATCH v3 2/2] setxattr02: Adapt test for kernel 7.1.0+ socket xattr support
Date: Wed, 18 Mar 2026 00:01:37 +0100 [thread overview]
Message-ID: <20260317230137.GB371512@pevik> (raw)
In-Reply-To: <69b9505b.050a0220.133478.afd0@mx.google.com>
Hi Andrea,
> Hi!
> Sorry for jumping in a bit late, but...
> > +static bool socket_xattr_supported;
> > +
> > struct test_case {
> > char *key;
> > @@ -57,7 +60,16 @@ struct test_case {
> > int flags;
> > int exp_err;
> > int needskeyset;
> > + void (*fix_errno)(struct test_case *tc);
> Honestly I would have preferred a bool flag here instead of a function.
> The code would have been more readable as:
> static void verify_setxattr(unsigned int i)
> {
> ..
> if (tc[i].check_xattr && socket_xattr_supported)
> tc->exp_err = 0;
> ..
> }
> And only 1 testcase would have been touched with `.check_xattr = 1`.
OK, this is slightly simpler.
> Also, please, always run `make check` before sending the patch. There are a
> couple of issues to fix in the test description.
> Same for the other patch.
I wonder what error you mean. Modified tests are ok:
$ make check-setxattr02
CHECK testcases/kernel/syscalls/setxattr/setxattr02.c
$ make check-fsetxattr02
CHECK testcases/kernel/syscalls/fsetxattr/fsetxattr02.c
Also, I'm not aware that make check would check test description
(I guess it'd be part of checkpatch.pl check, but still no idea).
Kind regards,
Petr
> Regards,
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2026-03-17 23:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-16 12:27 [LTP] [PATCH v3 0/2] LTP: adjust socket xattr tests for kernel 7.1.0+ Jan Polensky
2026-03-16 12:27 ` [LTP] [PATCH v3 1/2] fsetxattr02: Adapt test for kernel 7.1.0+ socket xattr support Jan Polensky
2026-03-20 7:46 ` Andrea Cervesato via ltp
2026-03-20 9:30 ` Jan Polensky
2026-03-16 12:27 ` [LTP] [PATCH v3 2/2] setxattr02: " Jan Polensky
2026-03-16 14:39 ` Petr Vorel
2026-03-17 13:00 ` Andrea Cervesato via ltp
2026-03-17 23:01 ` Petr Vorel [this message]
2026-03-18 10:53 ` Jan Polensky
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=20260317230137.GB371512@pevik \
--to=pvorel@suse.cz \
--cc=andrea.cervesato@suse.com \
--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