]> Git Repo - linux.git/commit
list: test: increase coverage of list_test_list_replace*()
authorI Hsin Cheng <[email protected]>
Tue, 10 Sep 2024 04:08:18 +0000 (12:08 +0800)
committerAndrew Morton <[email protected]>
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/[email protected]
Signed-off-by: I Hsin Cheng <[email protected]>
Cc: David Gow <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
lib/list-test.c
This page took 0.05385 seconds and 4 git commands to generate.