[LTP] [PATCH v2] syscalls: add syscall syncfs test

Cyril Hrubis
2019-02-15T13:25:26Z

Hi!
> > 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.

--
Cyril Hrubis
chrubis@suse.cz