Re: [PATCH v12 09/18] kunit: test: add support for test abort

2019-08-13 Thread Stephen Boyd
Quoting Brendan Higgins (2019-08-13 00:52:03) > On Mon, Aug 12, 2019 at 10:56 PM Stephen Boyd wrote: > > > > Quoting Brendan Higgins (2019-08-12 21:57:55) > > > On Mon, Aug 12, 2019 at 9:22 PM Stephen Boyd wrote: > > > > > > > > Quoting Brendan Higgins (2019-08-12 11:24:12) > > > > > diff --git a

Re: [PATCH v12 09/18] kunit: test: add support for test abort

2019-08-13 Thread Brendan Higgins
On Mon, Aug 12, 2019 at 10:56 PM Stephen Boyd wrote: > > Quoting Brendan Higgins (2019-08-12 21:57:55) > > On Mon, Aug 12, 2019 at 9:22 PM Stephen Boyd wrote: > > > > > > Quoting Brendan Higgins (2019-08-12 11:24:12) > > > > diff --git a/include/kunit/test.h b/include/kunit/test.h > > > > index 2

Re: [PATCH v12 09/18] kunit: test: add support for test abort

2019-08-12 Thread Stephen Boyd
Quoting Brendan Higgins (2019-08-12 21:57:55) > On Mon, Aug 12, 2019 at 9:22 PM Stephen Boyd wrote: > > > > Quoting Brendan Higgins (2019-08-12 11:24:12) > > > diff --git a/include/kunit/test.h b/include/kunit/test.h > > > index 2625bcfeb19ac..93381f841e09f 100644 > > > --- a/include/kunit/test.h

Re: [PATCH v12 09/18] kunit: test: add support for test abort

2019-08-12 Thread Brendan Higgins
On Mon, Aug 12, 2019 at 9:22 PM Stephen Boyd wrote: > > Quoting Brendan Higgins (2019-08-12 11:24:12) > > diff --git a/include/kunit/test.h b/include/kunit/test.h > > index 2625bcfeb19ac..93381f841e09f 100644 > > --- a/include/kunit/test.h > > +++ b/include/kunit/test.h > > @@ -13,6 +13,7 @@ > >

Re: [PATCH v12 09/18] kunit: test: add support for test abort

2019-08-12 Thread Stephen Boyd
Quoting Brendan Higgins (2019-08-12 11:24:12) > diff --git a/include/kunit/test.h b/include/kunit/test.h > index 2625bcfeb19ac..93381f841e09f 100644 > --- a/include/kunit/test.h > +++ b/include/kunit/test.h > @@ -13,6 +13,7 @@ > #include > #include > #include > +#include > > struct kunit_

[PATCH v12 09/18] kunit: test: add support for test abort

2019-08-12 Thread Brendan Higgins
Add support for aborting/bailing out of test cases, which is needed for implementing assertions. An assertion is like an expectation, but bails out of the test case early if the assertion is not met. The idea with assertions is that you use them to state all the preconditions for your test. Logica