]> git.baikalelectronics.ru Git - kernel.git/commit
lib/test_bitmap: test the tail after bitmap_to_arr64()
authorAlexander Lobakin <alexandr.lobakin@intel.com>
Mon, 11 Jul 2022 18:09:30 +0000 (20:09 +0200)
committerYury Norov <yury.norov@gmail.com>
Tue, 12 Jul 2022 15:00:50 +0000 (08:00 -0700)
commitebe067159d20a76f07baa44f08ed5ef5496d0570
tree207d67f462494fe52b63a31330ca56063b67bdc2
parentdd7cbca1f89109b0b64a3f44b5f991d0ee50f920
lib/test_bitmap: test the tail after bitmap_to_arr64()

Currently, test_bitmap_arr64() only tests bitmap_to_arr64()'s sanity
by comparing the result of double-conversion (bm -> arr64 -> bm2)
with the input bitmap. However, this may be not enough when one side
hides bugs of the second one (e.g. tail clearing, which is being
performed by both).
Expand the tests and check the tail of the actual arr64 used as
a temporary buffer for double-converting.

Signed-off-by: Alexander Lobakin <alexandr.lobakin@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Yury Norov <yury.norov@gmail.com>
lib/test_bitmap.c