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

(cherry picked from commit 7ee4066db1295fe3660964c2561bef87da7431f8)

Details

Provenance
markjAuthored on May 11 2023, 1:31 PM
Reviewer
oshogbo
Differential Revision
D39242: cap_net tests: Skip tests if there is no connectivity
Parents
rGaec3c884057a: buf: Dynamically allocate per-CPU buffer queues
Branches
Unknown
Tags
Unknown