[LTP] [PATCH V2] syscalls/openat2: New tests

Petr Vorel pvorel@suse.cz
Fri Mar 6 16:05:30 CET 2020


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


More information about the ltp mailing list