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

Cyril Hrubis chrubis@suse.cz
Fri Feb 15 14:25:26 CET 2019


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


More information about the ltp mailing list