[LTP] [PATCH 3/3] Add ioctl_ficlone03 test

Andrea Cervesato andrea.cervesato@suse.com
Fri Jul 12 09:36:12 CEST 2024


On 5/31/24 10:03, Cyril Hrubis wrote:
> Hi!
>>> Can we move these invalid_fd tests into a separate test and use tst_fd
>>> to loop over all kinds of invalid input and output file descriptors?
>>>
>> I don't know if it's worth to loop over all possible cases. Each one of
>> them has a specific test case.
> This was actually requested by kernel developers, to feed the syscalls
> with all kind of unexpected file descriptors.
>
>> Also, invalid_fd test cases would look so simple that it makes more
>> sense to keep it here.
> Fair enough, we can keep these two here, but we need a tst_fd test as
> well.
>
I'm trying to create a test using tst_fs but it seems quite 
unpredictable. For example, if the given paths are located on a 
different mount, EXDEV is raised.
But we don't have any control on it and it can happen with literally 
anything (signalfd, memfd, devices, etc) on the SUT we are testing.

So that ends up skipping 90% of the provided file descriptors. I don't 
know if I really want to follow this direction.

Andrea



More information about the ltp mailing list