writing test for `fs_x_ioctl`

Eugene Syromiatnikov esyr at redhat.com
Wed Mar 25 02:09:51 UTC 2020


On Mon, Mar 23, 2020 at 04:24:17PM +0530, Bran S wrote:
> Hi Guys,
> 
> I mean to write test for
> https://codecov.io/gh/strace/strace/src/master/fs_x_ioctl.c.
> 
> I have seen tests written for chmod.c as in tests/chmod.c.
> syscall(__NR_chmod) makes it possible to test chmod.c
> 
> But I can't find such syscall for fs_x_ioctl.c. Any idea on how to
> approach writing test for this ?

Please take a look at tests/ioct_*.c files, they implement checks
for various ioctl commands.



More information about the Strace-devel mailing list