Re: [PATCH 1/2] kunit: support failure from dynamic analysis tools
From: Brendan Higgins
Date: Mon Aug 10 2020 - 16:37:46 EST
On Thu, Aug 6, 2020 at 10:43 AM Uriel Guajardo
<urielguajardojr@xxxxxxxxx> wrote:
>
> Adds an API to allow dynamic analysis tools to fail the currently
> running KUnit test case.
>
> - Always places the kunit test in the task_struct to allow other tools
> to access the currently running KUnit test.
>
> - Creates a new header file to avoid circular dependencies that could be
> created from the test.h file.
>
> Requires KASAN-KUnit integration patch to access the kunit test from
> task_struct:
> https://lore.kernel.org/linux-kselftest/20200606040349.246780-2-davidgow@xxxxxxxxxx/
>
> Signed-off-by: Uriel Guajardo <urielguajardo@xxxxxxxxxx>
Reviewed-by: Brendan Higgins <brendanhiggins@xxxxxxxxxx>