[LTP] Split some fanotify tests
Cyril Hrubis
chrubis@suse.cz
Fri Jan 24 11:44:50 CET 2025
Hi!
> The reason I tend to add test cases is to save code duplication between tests,
> because there is a lot of boilerplate code for event verification, which often
> has bugs and needs fixing in multiple tests.
> There is another solution for code duplication - to write generic fanotify event
> verification helpers.
>
> It's up to you to decide if there is room for some helpers for fanotify event
> verification or if you want to fork the tests with code duplication.
> WDYT?
Sharing code is almost never a mistake. We usually put static inline
helpers into a common.h header and include that in tests.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list