Re: [PATCH v3 1/2] kunit: support failure from dynamic analysis tools

2021-02-16 Thread Daniel Latypov
On Thu, Feb 11, 2021 at 1:33 PM 'Brendan Higgins' via KUnit Development wrote: > > On Thu, Feb 11, 2021 at 12:58 PM Daniel Latypov wrote: > > > > On Thu, Feb 11, 2021 at 7:40 AM Alan Maguire > > wrote: > > > > > > On Thu, 11 Feb 2021, David Gow wrote: > > > > > > > On Wed, Feb 10, 2021 at 6:14

Re: [PATCH v3 1/2] kunit: support failure from dynamic analysis tools

2021-02-11 Thread Brendan Higgins
On Thu, Feb 11, 2021 at 12:58 PM Daniel Latypov wrote: > > On Thu, Feb 11, 2021 at 7:40 AM Alan Maguire wrote: > > > > On Thu, 11 Feb 2021, David Gow wrote: > > > > > On Wed, Feb 10, 2021 at 6:14 AM Daniel Latypov > > > wrote: > > > > > > > > From: Uriel Guajardo > > > > > > > > Add a

Re: [PATCH v3 1/2] kunit: support failure from dynamic analysis tools

2021-02-11 Thread Daniel Latypov
On Thu, Feb 11, 2021 at 7:40 AM Alan Maguire wrote: > > On Thu, 11 Feb 2021, David Gow wrote: > > > On Wed, Feb 10, 2021 at 6:14 AM Daniel Latypov wrote: > > > > > > From: Uriel Guajardo > > > > > > Add a kunit_fail_current_test() function to fail the currently running > > > test, if any, with

Re: [PATCH v3 1/2] kunit: support failure from dynamic analysis tools

2021-02-11 Thread Alan Maguire
On Thu, 11 Feb 2021, David Gow wrote: > On Wed, Feb 10, 2021 at 6:14 AM Daniel Latypov wrote: > > > > From: Uriel Guajardo > > > > Add a kunit_fail_current_test() function to fail the currently running > > test, if any, with an error message. > > > > This is largely intended for dynamic

Re: [PATCH v3 1/2] kunit: support failure from dynamic analysis tools

2021-02-11 Thread David Gow
On Wed, Feb 10, 2021 at 6:14 AM Daniel Latypov wrote: > > From: Uriel Guajardo > > Add a kunit_fail_current_test() function to fail the currently running > test, if any, with an error message. > > This is largely intended for dynamic analysis tools like UBSAN and for > fakes. > E.g. say I had a

[PATCH v3 1/2] kunit: support failure from dynamic analysis tools

2021-02-09 Thread Daniel Latypov
From: Uriel Guajardo Add a kunit_fail_current_test() function to fail the currently running test, if any, with an error message. This is largely intended for dynamic analysis tools like UBSAN and for fakes. E.g. say I had a fake ops struct for testing and I wanted my `free` function to complain