mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Felix Huang via B4 Relay <devnull+akafelixab.gmail.com@kernel.org>
To: linux-kernel@vger.kernel.org, Felix Huang <akafelixab@gmail.com>
Subject: [PATCH 0/2] kfifo: extend KUnit coverage
Date: Tue, 01 Dec 2026 22:17:20 -0500	[thread overview]
Message-ID: <20261201-kfifo-kunit-tests-v1-0-8d2a4ff45ad4@gmail.com> (raw)

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>



             reply	other threads:[~2026-12-02  3:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02  3:17 Felix Huang via B4 Relay [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261201-kfifo-kunit-tests-v1-0-8d2a4ff45ad4@gmail.com \
    --to=devnull+akafelixab.gmail.com@kernel.org \
    --cc=akafelixab@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®