On Fri, Jun 5, 2020 at 9:03 PM David Gow <[email protected]> wrote:
>
> From: Patricia Alfonso <[email protected]>
>
> Integrate KASAN into KUnit testing framework.
>         - Fail tests when KASAN reports an error that is not expected
>         - Use KUNIT_EXPECT_KASAN_FAIL to expect a KASAN error in KASAN
>         tests
>         - Expected KASAN reports pass tests and are still printed when run
>         without kunit_tool (kunit_tool still bypasses the report due to the
>         test passing)
>         - KUnit struct in current task used to keep track of the current
>         test from KASAN code
>
> This patch makes use of "kunit: generalize kunit_resource API beyond
> allocated resources" and "kunit: add support for named resources" from
> Alan Maguire [1]
>         - A named resource is added to a test when a KASAN report is
>         expected
>         - This resource contains a struct for kasan_data containing
>         booleans representing if a KASAN report is expected and if a KASAN
>         report is found
>
> [1] 
> https://lore.kernel.org/linux-kselftest/cafd5g46uu_5tg89uom0dj5cmq+11cwjbnsd-k_cvy6bqueu...@mail.gmail.com/T/#t
>
> Signed-off-by: Patricia Alfonso <[email protected]>
> Signed-off-by: David Gow <[email protected]>
> Reviewed-by: Dmitry Vyukov <[email protected]>
> Reviewed-by: Andrey Konovalov <[email protected]>

Acked-by: Brendan Higgins <[email protected]>

Reply via email to