list: test: Test the hlist structure
authorDavid Gow <davidgow@google.com>
Sat, 5 Mar 2022 07:40:20 +0000 (15:40 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 5 Apr 2022 19:32:27 +0000 (13:32 -0600)
commit1ff522b6ef4b40e7f46a9d8efe7554b2f3d36311
tree67b17ae3ec5d4cb1678628c06cde3a178d688552
parentb04d1a8dc7e7ff7ca91a20bef053bcc04265d83a
list: test: Test the hlist structure

Add KUnit tests to the hlist linked-list structure which is used by
hashtables. This should give coverage of every function and macro in
list.h, as well as (combined with the KUnit tests for the hash
functions) get very close to having tests for the hashtable structure.

The tests here mirror the existing list tests, and are found in a new
suite titled 'hlist'.

Signed-off-by: David Gow <davidgow@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
lib/list-test.c