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)
Mon, Apr 6, 9:25 PM
Unknown Object (File)
Sun, Apr 5, 3:16 PM
Unknown Object (File)
Sun, Apr 5, 4:31 AM
Unknown Object (File)
Sat, Mar 21, 8:26 AM
Unknown Object (File)
Sat, Mar 21, 1:27 AM
Unknown Object (File)
Thu, Mar 19, 4:44 AM
Unknown Object (File)
Wed, Mar 18, 9:05 AM
Unknown Object (File)
Mar 9 2026, 7:20 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 Not Applicable
Unit
Tests Not Applicable

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.