Page MenuHomeFreeBSD

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

Authored by olce on May 5 2025, 10:22 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 5, 4:01 AM
Unknown Object (File)
Sat, Sep 27, 5:27 PM
Unknown Object (File)
Sep 11 2025, 5:51 AM
Unknown Object (File)
Sep 3 2025, 7:58 PM
Unknown Object (File)
Sep 3 2025, 6:24 AM
Unknown Object (File)
Sep 2 2025, 11:59 PM
Unknown Object (File)
Aug 14 2025, 7:43 AM
Unknown Object (File)
Aug 10 2025, 12:06 PM
Subscribers

Diff Detail

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

Event Timeline

olce requested review of this revision.May 5 2025, 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.May 5 2025, 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.May 5 2025, 12:52 PM
This revision is now accepted and ready to land.May 5 2025, 1:05 PM
This revision was automatically updated to reflect the committed changes.