diff options
author | 2022-01-18 14:35:04 -0800 | |
---|---|---|
committer | 2022-01-25 13:04:38 -0700 | |
commit | 955df7d85e58b8090f1fd2d10b4b2713e99b552c (patch) | |
tree | 5b8ab7f3a54257d4506344320a83cc6e5846527b /lib/list-test.c | |
parent | kunit: drop unused intermediate macros for ptr inequality checks (diff) | |
download | wireguard-linux-955df7d85e58b8090f1fd2d10b4b2713e99b552c.tar.xz wireguard-linux-955df7d85e58b8090f1fd2d10b4b2713e99b552c.zip |
kunit: reduce layering in string assertion macros
The current macro chain looks like:
KUNIT_EXPECT_STREQ => KUNIT_EXPECT_STREQ_MSG => KUNIT_BINARY_STR_EQ_MSG_ASSERTION => KUNIT_BINARY_STR_ASSERTION.
KUNIT_ASSERT_STREQ => KUNIT_ASSERT_STREQ_MSG => KUNIT_BINARY_STR_EQ_MSG_ASSERTION => KUNIT_BINARY_STR_ASSERTION.
<ditto for STR_NE>
After this change:
KUNIT_EXPECT_STREQ => KUNIT_EXPECT_STREQ_MSG => KUNIT_BINARY_STR_ASSERTION.
KUNIT_ASSERT_STREQ => KUNIT_ASSERT_STREQ_MSG => KUNIT_BINARY_STR_ASSERTION.
<ditto for STR_NE>
All the intermediate macro did was pass in "==" or "!=", so it seems
better to just drop them at the cost of a bit more copy-paste.
Signed-off-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'lib/list-test.c')
0 files changed, 0 insertions, 0 deletions