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)
Sun, Oct 12, 10:57 PM
Unknown Object (File)
Sun, Oct 12, 10:57 PM
Unknown Object (File)
Sun, Oct 12, 10:57 PM
Unknown Object (File)
Sun, Oct 12, 11:29 AM
Unknown Object (File)
Thu, Oct 9, 6:13 PM
Unknown Object (File)
Mon, Oct 6, 6:58 AM
Unknown Object (File)
Fri, Oct 3, 12:14 PM
Unknown Object (File)
Sun, Sep 28, 11:16 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.