lib/test_bitmap: increment failure counter properly
authorYury Norov <yury.norov@gmail.com>
Sun, 26 Feb 2023 00:19:30 +0000 (16:19 -0800)
committerYury Norov <yury.norov@gmail.com>
Thu, 22 Jun 2023 20:57:41 +0000 (13:57 -0700)
commitc4c14c290682e080da5cee81f4998062e1be274a
treebe8210fc5381556558fe92c481def51dc762eb33
parentdad9774deaf1cf8e8f7483310dfb2690310193d2
lib/test_bitmap: increment failure counter properly

The tests that don't use expect_eq() macro to determine that a test is
failured must increment failed_tests explicitly.

Reported-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/lkml/20230225184702.GA3587246@roeck-us.net/
Signed-off-by: Yury Norov <yury.norov@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com>
lib/test_bitmap.c