Page MenuHomeFreeBSD

libthr: add some tests for pthread_atfork() handling
ClosedPublic

Authored by kevans on Oct 31 2024, 4:20 AM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 27 2025, 1:07 AM
Unknown Object (File)
Feb 20 2025, 9:40 AM
Unknown Object (File)
Feb 19 2025, 3:47 PM
Unknown Object (File)
Feb 13 2025, 11:02 AM
Unknown Object (File)
Feb 12 2025, 12:36 AM
Unknown Object (File)
Feb 10 2025, 5:49 AM
Unknown Object (File)
Feb 10 2025, 5:46 AM
Unknown Object (File)
Feb 5 2025, 3:46 AM
Subscribers

Details

Summary

Test that it generally functions, and also that registering multiple times
calls each handler in the order that it's documented to call them in.

Diff Detail

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

Event Timeline

markj added inline comments.
lib/libthr/tests/atfork_test.c
45

Extra newline

97

OTOH, I think this could be written as a C function.

159

It'd be nice to have a short summary of the test here.

This revision is now accepted and ready to land.Oct 31 2024, 1:46 PM
kevans marked 2 inline comments as done.

Add some comments and a short description for the test listing.

This revision now requires review to proceed.Oct 31 2024, 4:40 PM
This revision is now accepted and ready to land.Oct 31 2024, 5:16 PM