Re: [PATCH v4 3/4] kunit: Don't crash if no parameters are generated

From: Brendan Higgins
Date: Tue Dec 07 2021 - 15:26:35 EST


On Tue, Nov 2, 2021 at 3:30 AM David Gow <davidgow@xxxxxxxxxx> wrote:
>
> It's possible that a parameterised test could end up with zero
> parameters. At the moment, the test function will nevertheless be called
> with NULL as the parameter. Instead, don't try to run the test code, and
> just mark the test as SKIPped.
>
> Reported-by: Daniel Latypov <dlatypov@xxxxxxxxxx>
> Signed-off-by: David Gow <davidgow@xxxxxxxxxx>
> Reviewed-by: Daniel Latypov <dlatypov@xxxxxxxxxx>

Reviewed-by: Brendan Higgins <brendanhiggins@xxxxxxxxxx>