Re: [PATCH] lib/test_bitmap.c: Fix bitmap optimisation tests to report errors correctly

From: Andrew Morton
Date: Wed May 09 2018 - 19:00:01 EST


On Wed, 9 May 2018 21:43:28 +1000 Michael Ellerman <mpe@xxxxxxxxxxxxxx> wrote:

> From: Matthew Wilcox <mawilcox@xxxxxxxxxxxxx>
>
> I had neglected to increment the error counter when the tests failed,
> which made the tests noisy when they fail, but not actually return an
> error code.
>
> Reported-by: Michael Ellerman <mpe@xxxxxxxxxxxxxx>
> Signed-off-by: Matthew Wilcox <mawilcox@xxxxxxxxxxxxx>
> Fixes: 3cc78125a081 ("lib/test_bitmap.c: add optimisation tests")
> Cc: stable@xxxxxxxxxxxxxxx # v4.13+
> Tested-by: Michael Ellerman <mpe@xxxxxxxxxxxxxx>

I'll add your SOB to my copy of this, as you were on the patch delivery path.