HomeFreeBSD

cap_net tests: Skip tests if there is no connectivity

Description

cap_net tests: Skip tests if there is no connectivity

When testing cap_connect() and name/addr lookup functions, skip tests if
we fail and the error is not ENOTCAPABLE. This makes the tests amenable
to running in CI without Internet connectivity.

Reviewed by: oshogbo
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D39242

Details

Provenance
markjAuthored on Apr 27 2023, 1:42 PM
Reviewer
oshogbo
Differential Revision
D39242: cap_net tests: Skip tests if there is no connectivity
Parents
rG014e03411f20: bhyve: Add DEBUG_HDA_FILE define to specify location of debug output
Branches
Unknown
Tags
Unknown