HomeFreeBSD

queue(3): Add simple tests for some macros for all list/tailq types

Description

queue(3): Add simple tests for some macros for all list/tailq types

These essentially test building a list/tailq of 100 elements with
_INSERT_HEAD(), iterating over them with _FOREACH(), splitting it with
_SPLIT_AFTER() and concatenating back the results with _CONCAT(),
checking that the lists/tailqs at each step have the right number of
elements and at the expected positions.

Reviewed by: markj
MFC after: 2 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D49975

Details

Provenance
olceAuthored on Tue, Apr 8, 11:42 AM
Reviewer
markj
Differential Revision
D49975: queue(3): Add simple tests for some macros for all list/tailq types
Parents
rG8f58b693814e: vm_grab_pages_unlocked: read all the pages at once
Branches
Unknown
Tags
Unknown