Re: [PATCH v3 3/5] iio: test: Add kunit tests for iio_divide_by_value()
From: Andy Shevchenko
Date: Thu Nov 06 2025 - 11:10:25 EST
On Thu, Nov 06, 2025 at 03:11:48PM +0100, Romain Gantois wrote:
> Add kunit tests for iio_divide_by_value(), these are similar to the
> existing tests for iio_multiply_value(), but the operand values used differ
> slightly.
When use abs() in the code, always add a check for the *_MIN.
This will give you a few surprises.
--
With Best Regards,
Andy Shevchenko