HomeFreeBSD

bitstring_test: Add regression tests for bit_ff(c|s)_area_at()

Description

bitstring_test: Add regression tests for bit_ff(c|s)_area_at()

Validate the cases where a match can be found immediately and where no
match can be found. This extends the existing test cases and is enough
to catch the bug fixed in commit 6e7a585348d5 ("bitstring: fix ff_area()
when start!=0").

Reviewed by: dougm
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 670be460e4089038aadb47917bd71fe07d2cac21)

Details

Provenance
markjAuthored on May 20 2022, 2:18 PM
Parents
rGa1cd2f5d830d: ping: add missing test files to Makefile
Branches
Unknown
Tags
Unknown