[LTP] [PATCH v2] syscalls: add syscall syncfs test
Fri Feb 15 14:51:43 CET 2019
On Fri, 15 Feb 2019 at 18:55, Cyril Hrubis <firstname.lastname@example.org> wrote:
> > > Thanks for the pointers. IIUC, you are referring to following change:
> > >
> > > - TEST(syncfs(fd));
> > > + TEST(tst_syscall(__NR_syncfs, fd));
> > >
> > > If yes, then I will incorporate it.
> > The most complete solution is configure check + fallback definition.
> > Have a look at:
> > include/lapi/execveat.h
> > m4/ltp-execveat.m4
> > configure.ac
> And then you have to also check for the return value to exit the test
> with TCONF on missing kernel support, you will most likely get EINVAL in
> that case as the syscall number is not known.
Ok got it. Will incorporate it.
> Cyril Hrubis
More information about the ltp