HomeFreeBSD

tests: kqueue: improve diagnostics for our CPONFORK test

Description

tests: kqueue: improve diagnostics for our CPONFORK test

Notably, confirm in the child that our close-on-fork fd is actually
closed, and break RECV_ALL out into a table and check each bit
individually to provide a better message when the test fails.

While we're here, just switch to waitid() rather than trying to identify
the point where we have to make the switch. This reduces maintenance
slightly, as keeping our assertion static would require still adding to
a _RECV_ALL mask *just* for that purpose.

Reviewed by: kib, markj (both slightly earlier version)

(cherry picked from commit 51d2c38010824b90d7462711896a88165db9d015)

Details

Provenance
kevansAuthored on Apr 17 2026, 3:57 AM
Parents
rGca19c9296ad6: <sys/extattr.h>: use designated initializers for EXTATTR_NAMESPACE_NAMES
Branches
Unknown
Tags
Unknown