Chrome platform driver development
 help / color / mirror / Atom feed
From: Tzung-Bi Shih <tzungbi@kernel.org>
To: Masaharu Noguchi <nogunix@gmail.com>
Cc: Benson Leung <bleung@chromium.org>,
	Guenter Roeck <groeck@chromium.org>,
	chrome-platform@lists.linux.dev
Subject: Re: [PATCH] platform/chrome: cros_ec_proto: use KUNIT_EXPECT_MEMEQ() in KUnit tests
Date: Wed, 2 Dec 2026 03:43:40 +0000	[thread overview]
Message-ID: <aw-T7ER7R4Lum6db@google.com> (raw)
In-Reply-To: <20261202-cros-ec-memeq-v1-1-81835dd60eda@gmail.com>

On Wed, Dec 02, 2026 at 01:20:22AM +0900, Masaharu Noguchi wrote:
> Replace KUNIT_EXPECT_EQ(test, memcmp(...), 0) with KUNIT_EXPECT_MEMEQ()
> in cros_ec_proto_test_cmd_xfer_in_progress_payload_4bytes() and
> cros_ec_proto_test_cmd_xfer_in_progress_payload_gt4bytes().
> 
> KUNIT_EXPECT_MEMEQ() is more readable and prints a hex dump of the
> mismatched buffers on failure instead of just comparing the memcmp()
> return value against 0.
> 
> [...]

Applied to

    https://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git for-next

[1/1] platform/chrome: cros_ec_proto: use KUNIT_EXPECT_MEMEQ() in KUnit tests
      commit: 7f6a0febc88dc88c5cd3f9d27b398eaff6043b91

Thanks!

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

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 16:20 [PATCH] platform/chrome: cros_ec_proto: use KUNIT_EXPECT_MEMEQ() in KUnit tests Masaharu Noguchi
2026-12-02  3:43 ` Tzung-Bi Shih [this message]

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=aw-T7ER7R4Lum6db@google.com \
    --to=tzungbi@kernel.org \
    --cc=bleung@chromium.org \
    --cc=chrome-platform@lists.linux.dev \
    --cc=groeck@chromium.org \
    --cc=nogunix@gmail.com \
    /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