[PATCH 0/2] kfifo: extend KUnit coverage

From: Felix Huang via B4 Relay

Date: Tue Dec 01 2026 - 22:16:48 EST


The first patch cleans up the existing kfifo KUnit tests without
changing their behavior.

The second patch checks that kfifo_avail() reports the expected free
space before and after a write and after a reset. It also checks that
a full FIFO rejects a write and accepts one after an element is read.

Signed-off-by: Felix Huang <akafelixab@xxxxxxxxx>
---
Felix Huang (2):
kfifo: clean up KUnit test style
kfifo: add tests for kfifo_avail and full-FIFO behavior

lib/tests/kfifo_kunit.c | 97 ++++++++++++++++++++++++++++++++++++++-----------
1 file changed, 76 insertions(+), 21 deletions(-)
---
base-commit: 693c2e04e3f1d4c59af236e1211b7b8cb165a790
change-id: 20261201-kfifo-kunit-tests-9bdab23b598c

Best regards,
--
Felix Huang <akafelixab@xxxxxxxxx>