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 ku

Re: [RFC v4 02/17] kunit: test: add test resource management API

2019-02-16 Thread Stephen Boyd via dri-devel
Quoting Brendan Higgins (2019-02-14 13:37:14) > @@ -104,6 +167,7 @@ struct kunit { > const char *name; /* Read only after initialization! */ > spinlock_t lock; /* Gaurds all mutable test state. */ > bool success; /* Protected by lock. */ > + struct list_head resources;