Page MenuHomeFreeBSD

Add simple regression tests for tree(3).
ClosedPublic

Authored by trasz on May 7 2019, 5:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 20 2023, 3:30 AM
Unknown Object (File)
Nov 22 2023, 5:06 PM
Unknown Object (File)
Nov 13 2023, 6:47 AM
Unknown Object (File)
Oct 19 2023, 7:21 PM
Unknown Object (File)
Oct 19 2023, 12:26 PM
Unknown Object (File)
Oct 19 2023, 1:27 AM
Unknown Object (File)
Sep 6 2023, 8:47 PM
Unknown Object (File)
Aug 26 2023, 9:12 AM
Subscribers

Details

Summary

Add simple regression tests for tree(3). Those are ATF-ified versions
of OpenBSD's regress/sys/sys/tree/.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

seemslegit

tests/sys/sys/splay_test.c
68–94 ↗(On Diff #57141)

General comment (I know this is upstream code): testing against ITER/ITER-1 (because the splay is removed on 92) is ok, but it is a bit fragile in the event that more code is added in the middle of the two loops. It would be better to increment the maximum value, decrement when removing, then test against the new smaller maximum in the second loop.

71–74 ↗(On Diff #57141)

That's an interesting way to handle collisions...

This revision is now accepted and ready to land.May 8 2019, 11:31 PM
This revision was automatically updated to reflect the committed changes.