]> www.infradead.org Git - users/willy/xarray.git/commit
list: test: increase coverage of list_test_list_replace*()
authorI Hsin Cheng <richard120310@gmail.com>
Tue, 10 Sep 2024 04:08:18 +0000 (12:08 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 17 Sep 2024 08:11:20 +0000 (01:11 -0700)
commit5e06e08939df1cafef97a8e04f4b88c2806b538a
tree10096ffb64f32444930c64c0e37912b3f44468b9
parente620799c414a035dea1208bcb51c869744931dbb
list: test: increase coverage of list_test_list_replace*()

Increase the test coverage of list_test_list_replace*() by adding the
checks to compare the pointer of "a_new.next" and "a_new.prev" to make
sure a perfect circular doubly linked list is formed after the
replacement.

Link: https://lkml.kernel.org/r/20240910040818.65723-1-richard120310@gmail.com
Signed-off-by: I Hsin Cheng <richard120310@gmail.com>
Cc: David Gow <davidgow@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/list-test.c