]> www.infradead.org Git - linux.git/commit
kunit: Introduce KUNIT_ASSERT_MEMEQ and KUNIT_ASSERT_MEMNEQ macros
authorEric Chan <ericchancf@google.com>
Thu, 11 Jul 2024 19:39:45 +0000 (19:39 +0000)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 12 Jul 2024 16:12:11 +0000 (10:12 -0600)
commitebf51e460e488511d9ee60b07d00dac68883facf
tree5165aa5e83d65272760f460e851af08ab8013606
parent7d4087b013895524438f2522367c984f776e09e3
kunit: Introduce KUNIT_ASSERT_MEMEQ and KUNIT_ASSERT_MEMNEQ macros

Introduces KUNIT_ASSERT_MEMEQ and KUNIT_ASSERT_MEMNEQ macros
to provide assert-type equivalents for memory comparison.
While KUNIT_EXPECT_MEMEQ and KUNIT_EXPECT_MEMNEQ are available for
expectations, the addition of these new macros ensures that assertions
can also be used for memory comparisons, enhancing the consistency and
completeness of the kunit framework.

Signed-off-by: Eric Chan <ericchancf@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
include/kunit/test.h