Re: [PATCH] Documentation: kunit: add tips for using current->kunit_test

2021-04-07 Thread Shuah Khan
On 4/7/21 2:07 PM, Brendan Higgins wrote: On Tue, Apr 6, 2021 at 3:51 PM Daniel Latypov wrote: As of commit 359a376081d4 ("kunit: support failure from dynamic analysis tools"), we can use current->kunit_test to find the current kunit test. Mention this in tips.rst and give an example of how

Re: [PATCH] Documentation: kunit: add tips for using current->kunit_test

2021-04-07 Thread Brendan Higgins
On Tue, Apr 6, 2021 at 3:51 PM Daniel Latypov wrote: > > As of commit 359a376081d4 ("kunit: support failure from dynamic analysis > tools"), we can use current->kunit_test to find the current kunit test. > > Mention this in tips.rst and give an example of how this can be used in > conjunction

[PATCH] Documentation: kunit: add tips for using current->kunit_test

2021-04-06 Thread Daniel Latypov
As of commit 359a376081d4 ("kunit: support failure from dynamic analysis tools"), we can use current->kunit_test to find the current kunit test. Mention this in tips.rst and give an example of how this can be used in conjunction with `test->priv` to pass around state and specifically implement