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)
Tue, May 12, 11:10 AM
Unknown Object (File)
Mon, May 11, 11:22 PM
Unknown Object (File)
Mon, May 11, 8:52 PM
Unknown Object (File)
Sun, May 10, 2:52 AM
Unknown Object (File)
Wed, Apr 29, 12:10 PM
Unknown Object (File)
Apr 20 2026, 2:50 PM
Unknown Object (File)
Apr 20 2026, 2:50 PM
Unknown Object (File)
Apr 19 2026, 7:57 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.