Re: [PATCH] Documentation: kunit: improve example on testing static functions

2025-05-20 Thread Thomas Weißschuh
On 2025-05-16 19:06:31+, Rae Moar wrote: > -Alternatively, you could conditionally ``#include`` the test file at the end > of > -your .c file. For example: > + /* In the KUnit test file "my_file_test.c" */ > + > + #include > + #include > + ... > + MODULE_IMPORT_NS(EXPO

Re: [PATCH] Documentation: kunit: improve example on testing static functions

2025-05-17 Thread David Gow
On Sat, 17 May 2025 at 03:06, Rae Moar wrote: > > The documentation on testing static functions using the KUnit macros > VISIBLE_IF_KUNIT and EXPORT_SYMBOL_IF_KUNIT is lacking clarity and > missing key steps in the example. This has caused bugs and confusion > among developers. > > Improve wording

[PATCH] Documentation: kunit: improve example on testing static functions

2025-05-16 Thread Rae Moar
The documentation on testing static functions using the KUnit macros VISIBLE_IF_KUNIT and EXPORT_SYMBOL_IF_KUNIT is lacking clarity and missing key steps in the example. This has caused bugs and confusion among developers. Improve wording of description and add missing steps to the example. This e