public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH V2] syscalls/openat2: New tests
Date: Fri, 6 Mar 2020 16:05:30 +0100	[thread overview]
Message-ID: <20200306150530.GA15614@dell5510> (raw)
In-Reply-To: <20200306144603.GA31015@rei.lan>

Hi,

> > +void openat2_supported_by_kernel(void)
> > +{
> > +	if ((tst_kvercmp(5, 6, 0)) < 0) {
> > +		/* Check if the syscall is backported on an older kernel */
> > +		TEST(syscall(__NR_openat2, -1, NULL, NULL, 0));
> > +		if (TST_RET == -1 && TST_ERR == ENOSYS)
> > +			tst_brk(TCONF, "Test not supported on kernel version < v5.2");

> The test is for 5.6 but the message says 5.2, so which one is correct?
Added in v5.6.

Kind regards,
Petr

  reply	other threads:[~2020-03-06 15:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-03 11:14 [LTP] [PATCH V2] syscalls/openat2: New tests Viresh Kumar
2020-03-06 14:46 ` Cyril Hrubis
2020-03-06 15:05   ` Petr Vorel [this message]
2020-03-11  7:08   ` Viresh Kumar
2020-03-13  4:24     ` Viresh Kumar
2020-03-13 15:46     ` Cyril Hrubis

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=20200306150530.GA15614@dell5510 \
    --to=pvorel@suse.cz \
    --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