Skip to content

kunit: Improve the readability and functionality of macro

Eric Chan linux-kselftest lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 3 repliesIn review
  2. v13 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3kunit: Fix the comment of KUNIT_ASSERT_STRNEQ as assertioninclude/kunit/test.h+2 -21 reply
2/3kunit: Rename KUNIT_ASSERT_FAILURE to KUNIT_FAIL_AND_ABORT for readabilitydrivers/input/tests/input_test.c include/kunit/assert.h include/kunit/test.h+14 -31 reply
3/3kunit: Introduce KUNIT_ASSERT_MEMEQ and KUNIT_ASSERT_MEMNEQ macrosinclude/kunit/test.h+54 -01 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchDavid Gow
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] kunit: Improve the readability and functionality of macro

This series let kunit macro more neat and clear. Fix comment and rename the macro.
Also introduce new type of assertion marco for functionality. This is a follow-up to [0](v1).

v1 -> v2: [PATCH 2/3] changed KUNIT_ASSERT to KUNIT_FAIL_AND_ABORT
[0] https://lore.kernel.org/lkml/[email protected]/

Eric Chan (3):
kunit: Fix the comment of KUNIT_ASSERT_STRNEQ as assertion
kunit: Rename KUNIT_ASSERT_FAILURE to KUNIT_FAIL_AND_ABORT for
readability
kunit: Introduce KUNIT_ASSERT_MEMEQ and KUNIT_ASSERT_MEMNEQ macros

 drivers/input/tests/input_test.c |  2 +-
 include/kunit/assert.h           |  2 +-
 include/kunit/test.h             | 71 ++++++++++++++++++++++++++++++--
 3 files changed, 70 insertions(+), 5 deletions(-)
Signature · 1 line
2.45.2.993.g49e7a77208-goog