[LTP] [PATCH v2 2/3] Add fanotify_get_supported_init_flags() helper function
Martin Doucha
mdoucha@suse.cz
Mon Oct 24 15:16:55 CEST 2022
On 24. 10. 22 15:08, Amir Goldstein wrote:
> Why is skipping the test better than passing the test?
>
> The test wants to know that a specific flag combination is not allowed.
>
> It is particarly not allowed also on old kernels that do not support
> either individual flag.
>
> What's the difference?
>
> Who is going to gain anything from this change?
>
> Sorry for being strict on this point
> I may be missing something.
>
> Please clarify what it is the problem use case is and I will suggest a
> solution, because I disagree with this solution.
We're running fanotify14 on kernel 5.3 and one of the subtests (test
case #8) is using a flag that was added in kernel 5.9. But in this case,
fanotify_init() is supposed to pass and then fanotify_mark() is supposed
to fail because of mismatch between mark() and init() flags. I'm trying
to fix this particular subtest failure caused by wrong feature check.
--
Martin Doucha mdoucha@suse.cz
QA Engineer for Software Maintenance
SUSE LINUX, s.r.o.
CORSO IIa
Krizikova 148/34
186 00 Prague 8
Czech Republic
More information about the ltp
mailing list