mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] kfifo: extend KUnit coverage
@ 2026-12-02  3:17 Felix Huang via B4 Relay
  2026-12-02  3:17 ` [PATCH 1/2] kfifo: clean up KUnit test style Felix Huang via B4 Relay
  2026-12-02  3:17 ` [PATCH 2/2] kfifo: add tests for kfifo_avail and full-FIFO behavior Felix Huang via B4 Relay
  0 siblings, 2 replies; 3+ messages in thread
From: Felix Huang via B4 Relay @ 2026-12-02  3:17 UTC (permalink / raw)
  To: linux-kernel, Felix Huang

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@gmail.com>
---
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@gmail.com>



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-12-02  3:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-02  3:17 [PATCH 0/2] kfifo: extend KUnit coverage Felix Huang via B4 Relay
2026-12-02  3:17 ` [PATCH 1/2] kfifo: clean up KUnit test style Felix Huang via B4 Relay
2026-12-02  3:17 ` [PATCH 2/2] kfifo: add tests for kfifo_avail and full-FIFO behavior Felix Huang via B4 Relay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®