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

Steve Muckle smuckle@google.com
Sat Feb 16 01:17:32 CET 2019


On 02/15/2019 05:22 AM, Cyril Hrubis wrote:
> 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

For tests in testcases/kernel/syscalls, should the tests typically 
directly call the syscall? I'd think this is preferable to the use of C 
library wrappers as these tests (by their location in the tree) seem to 
be focused on the syscall functionality in the kernel.

thanks,
steve


More information about the ltp mailing list