diff options
| author | Artem Bityutskiy <[email protected]> | 2010-10-26 21:23:08 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2010-10-26 23:52:19 +0000 |
| commit | 041b78f232bb87b2de8ca3fed50384bc7dc9c2de (patch) | |
| tree | ca76ca89b76360f9fbc5987519d6cf0c8c53cdda /lib/parser.c | |
| parent | lib/list_sort: test: unify test messages (diff) | |
| download | kernel-041b78f232bb87b2de8ca3fed50384bc7dc9c2de.tar.gz kernel-041b78f232bb87b2de8ca3fed50384bc7dc9c2de.zip | |
lib/list_sort: test: check element addresses
Improve 'lib_sort()' test and check that:
o 'cmp()' is called only for elements which were present in the original list,
i.e., the 'a' and 'b' parameters are valid
o the resulted (sorted) list consists onlly of the original elements
o intdoruce "poison" fields to make sure data around 'struc list_head' field
are not corrupted.
Signed-off-by: Artem Bityutskiy <[email protected]>
Cc: Don Mullis <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/parser.c')
0 files changed, 0 insertions, 0 deletions
