list: test: Add a test for list_entry_is_head()
authorDavid Gow <davidgow@google.com>
Fri, 25 Feb 2022 02:52:49 +0000 (10:52 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 25 Feb 2022 15:39:01 +0000 (08:39 -0700)
commit5debe5bfa02c4c8922bd2d0f82c9c3a70bec8944
treef04a199a6de8a8c29361c3209459df8ea1c2870b
parent37dc573c0a547e1aed0c9abb480fab797bd3833f
list: test: Add a test for list_entry_is_head()

The list_entry_is_head() macro was added[1] after the list KUnit tests,
so wasn't tested. Add a new KUnit test to complete the set.

[1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e130816164e244b692921de49771eeb28205152d

Signed-off-by: David Gow <davidgow@google.com>
Acked-by: Daniel Latypov <dlatypov@google.com>
Acked-by: Brendan Higgins <brendanhiggins@google.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
lib/list-test.c