Re: [PATCH] regmap: kunit: Ensure that changed bytes are actually different

From: Mark Brown
Date: Fri Feb 09 2024 - 15:05:55 EST


On Fri, Feb 09, 2024 at 08:02:27PM +0000, Mark Brown wrote:
> During the cache sync test we verify that values we expect to have been
> written only to the cache do not appear in the hardware. This works most
> of the time but since we randomly generate both the original and new values
> there is a low probability that these values may actually be the same.
> Wrap get_random_bytes() to ensure that the values are different, it is
> likely we will want a similar pattern for other tests in the future.

Sorry, works better if you actally check stuff in. v2 coming.

Attachment: signature.asc
Description: PGP signature