Re: [RFC v4 10/17] kunit: test: add test managed resource tests

2019-02-20 Thread Stephen Boyd
Quoting Brendan Higgins (2019-02-19 15:20:18) > On Fri, Feb 15, 2019 at 12:54 PM Stephen Boyd wrote: > > > > Quoting Brendan Higgins (2019-02-14 13:37:22) > > > + > > > +static struct kunit_case kunit_resource_test_cases[] = { > > > > Can these arrays be const? > > There is some private mutable

Re: [RFC v4 10/17] kunit: test: add test managed resource tests

2019-02-19 Thread Brendan Higgins
On Fri, Feb 15, 2019 at 12:54 PM Stephen Boyd wrote: > > Quoting Brendan Higgins (2019-02-14 13:37:22) > > diff --git a/kunit/test-test.c b/kunit/test-test.c > > index 0b4ad6690310d..bb34431398526 100644 > > --- a/kunit/test-test.c > > +++ b/kunit/test-test.c > [...] > > + > > +#define

[RFC v4 10/17] kunit: test: add test managed resource tests

2019-02-16 Thread Brendan Higgins via dri-devel
Tests how tests interact with test managed resources in their lifetime. Signed-off-by: Avinash Kondareddy Signed-off-by: Brendan Higgins --- kunit/test-test.c | 121 ++ 1 file changed, 121 insertions(+) diff --git a/kunit/test-test.c

Re: [RFC v4 10/17] kunit: test: add test managed resource tests

2019-02-15 Thread Stephen Boyd via dri-devel
Quoting Brendan Higgins (2019-02-14 13:37:22) > diff --git a/kunit/test-test.c b/kunit/test-test.c > index 0b4ad6690310d..bb34431398526 100644 > --- a/kunit/test-test.c > +++ b/kunit/test-test.c [...] > + > +#define KUNIT_RESOURCE_NUM 5 > +static void kunit_resource_test_cleanup_resources(struct