Page MenuHomeFreeBSD

queue(3): Add a test for STAILQ_REVERSE()
ClosedPublic

Authored by olce on Mon, May 5, 10:22 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 9, 12:59 PM
Unknown Object (File)
Fri, May 9, 10:10 AM
Unknown Object (File)
Fri, May 9, 1:09 AM
Unknown Object (File)
Wed, May 7, 1:42 PM
Unknown Object (File)
Tue, May 6, 1:41 PM
Unknown Object (File)
Tue, May 6, 8:56 AM
Unknown Object (File)
Tue, May 6, 8:22 AM
Unknown Object (File)
Tue, May 6, 7:14 AM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 63891
Build 60775: arc lint + arc unit

Event Timeline

olce requested review of this revision.Mon, May 5, 10:22 AM
tests/sys/sys/queue_test.c
270

May be also check STAILQ_FIRST()?

276

Would it make sense to add some checks for the empty stailq after the reverse? Then we would see that the test does not crash, at least, due to a corruption.

olce marked an inline comment as done.Mon, May 5, 12:52 PM
olce added inline comments.
tests/sys/sys/queue_test.c
270

That's already part of the checks performed by *_check() functions.

276

Yes.

olce marked an inline comment as done.
  • Check empty_stailq after applying STAILQ_REVERSE().
  • Destroy empty_stailq once done.
olce marked an inline comment as done.Mon, May 5, 12:52 PM
This revision is now accepted and ready to land.Mon, May 5, 1:05 PM
This revision was automatically updated to reflect the committed changes.