]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit457acf44fdd90523ebdb9c5d214e51e0d6c304c2
tree67b17ae3ec5d4cb1678628c06cde3a178d688552
parent8effb975a896b2ab92d3c7ee0f19c6ed1735c0ca
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