list: test: Test the klist structure
authorSadiya Kazi <sadiyakazi@google.com>
Fri, 31 Mar 2023 06:45:29 +0000 (06:45 +0000)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 31 Mar 2023 15:21:35 +0000 (09:21 -0600)
commit57b4f760f94da13104cd596d5fb1643ae09c4d49
tree0cf9857d9ada5b3be5c95fd1cf9b6d814cb45ed3
parent7232282dd47cce6a780c9414bd9baccf232c7686
list: test: Test the klist structure

Add KUnit tests to the klist linked-list structure.
These perform testing for different variations of node add
and node delete in the klist data structure (<linux/klist.h>).

Limitation: Since we use a static global variable, and if
multiple instances of this test are run concurrently, the test may fail.

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