Re: [PATCH v2 5/6] kunit: Add example with alternate function redirection method

2024-08-27 Thread Lucas De Marchi
On Tue, Aug 27, 2024 at 12:20:14AM GMT, Michal Wajdeczko wrote: Add example how to use KUNIT_FIXED_STUB_REDIRECT and compare its s/FIXED/GLOBAL/ usage with the KUNIT_STATIC_STUB_REDIRECT. Also show how the DECLARE_IF_KUNIT macro could be helpful in declaring test data in the non-test data str

[PATCH v2 5/6] kunit: Add example with alternate function redirection method

2024-08-26 Thread Michal Wajdeczko
Add example how to use KUNIT_FIXED_STUB_REDIRECT and compare its usage with the KUNIT_STATIC_STUB_REDIRECT. Also show how the DECLARE_IF_KUNIT macro could be helpful in declaring test data in the non-test data structures. Signed-off-by: Michal Wajdeczko Reviewed-by: Rae Moar #v1 Reviewed-by: Dav