Page MenuHomeFreeBSD

syslogd/tests: Fix flakiness in forwarding tests
ClosedPublic

Authored by markj on Jan 20 2026, 5:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 20, 5:10 AM
Unknown Object (File)
Sun, May 17, 1:23 AM
Unknown Object (File)
Thu, May 14, 1:05 PM
Unknown Object (File)
Wed, May 13, 6:51 PM
Unknown Object (File)
Wed, May 13, 6:51 PM
Unknown Object (File)
Wed, May 13, 6:50 PM
Unknown Object (File)
Tue, Apr 28, 10:29 AM
Unknown Object (File)
Apr 17 2026, 12:53 PM
Subscribers

Details

Summary

syslogd_start() waits for the local log socket to appear before
returning, to ensure that the daemon is ready to handle log messages.
Some tests start two daemons, so by default the socket already exists
when the second daemon is started, so syslogd_start() returns early.
The test subsequently sends a message to this second daemon, which
sometimes isn't ready.

Define a separate log socket for the second daemon. Add a check to
syslogd_start() to help catch this type of bug.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

I've seen that when using ATF, ${PWD} is preferred over $(pwd) (efficiency, I guess).

This revision is now accepted and ready to land.Jan 20 2026, 5:58 PM
This revision now requires review to proceed.Jan 20 2026, 7:28 PM
This revision is now accepted and ready to land.Jan 20 2026, 7:52 PM