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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
lib/libcasper/services/cap_net/tests/net_test.c | ||
---|---|---|
144–145 | I should probably reorder the previous function instead. I did it that way initially but in some of the tests we expect the non-casper version to fail. So the pattern is:
I'll change the other functions so that this is consistent. |