diff options
| author | Maíra Canal <[email protected]> | 2022-10-25 23:10:43 +0000 |
|---|---|---|
| committer | Shuah Khan <[email protected]> | 2022-10-27 08:40:14 +0000 |
| commit | a52a5451f43bb76743c51dd46788008837243f29 (patch) | |
| tree | 6afd4ebbc8e53d76a2ed30458af57bb3e7a49c2a /lib/list_debug.c | |
| parent | kunit: Add KUnit memory block assertions to the example_all_expect_macros_test (diff) | |
| download | kernel-a52a5451f43bb76743c51dd46788008837243f29.tar.gz kernel-a52a5451f43bb76743c51dd46788008837243f29.zip | |
kunit: Use KUNIT_EXPECT_MEMEQ macro
Use KUNIT_EXPECT_MEMEQ to compare memory blocks in replacement of the
KUNIT_EXPECT_EQ macro. Therefor, the statement
KUNIT_EXPECT_EQ(test, memcmp(foo, bar, size), 0);
is replaced by:
KUNIT_EXPECT_MEMEQ(test, foo, bar, size);
Signed-off-by: Maíra Canal <[email protected]>
Acked-by: Daniel Latypov <[email protected]>
Reviewed-by: David Gow <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'lib/list_debug.c')
0 files changed, 0 insertions, 0 deletions
