Page MenuHomeFreeBSD

libtpool/tests: Fix a flaky test
ClosedPublic

Authored by markj on Jun 21 2025, 6:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 6, 3:02 AM
Unknown Object (File)
Thu, Nov 6, 12:30 AM
Unknown Object (File)
Wed, Nov 5, 9:21 PM
Unknown Object (File)
Oct 12 2025, 10:57 PM
Unknown Object (File)
Oct 12 2025, 10:57 PM
Unknown Object (File)
Oct 12 2025, 10:57 PM
Unknown Object (File)
Oct 12 2025, 11:29 AM
Unknown Object (File)
Oct 9 2025, 6:13 PM
Subscribers

Details

Summary

I occasionally see failures due to pthread_barrier_wait() not returning
0. There is another possible non-error return value, so allow that too.
While here, check the result in tp_delay() as well.

Diff Detail

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

Event Timeline

markj requested review of this revision.Jun 21 2025, 6:32 PM
cddl/lib/libtpool/tests/libtpool_test.c
1

@asomers this file is missing a license header. Could you please add one?

This revision was not accepted when it landed; it landed in state Needs Review.Jun 25 2025, 5:17 PM
This revision was automatically updated to reflect the committed changes.