Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests on FreeBSD #341

Merged
merged 4 commits into from
Jan 2, 2024
Merged

Fix tests on FreeBSD #341

merged 4 commits into from
Jan 2, 2024

Conversation

sunfishcode
Copy link
Member

FreeBSD CI isn't currently running (#340), so fix some issues on FreeBSD that had gone unnoticed. Adjust the Cirrus CI scripts to use the existing curl instead of building a new one, adjust the tests for FreeBSD's behavior opening . on a directory without search permissions, adjust the beneath_supported test to test for FreeBSD 14's RESOLVE_BENEATH behavior, and add FreeBSD 14.0-snap to the Cirrus CI config.

Disable tests that are failing on FreeBSD. The "ambient" versions of these
tests are also failing, so this appears to be platform-specific behavior
rather than cap-std's behavior.
Change the `RESOLVE_BENEATH` check to check for the behavior of opening
`..` on FreeBSD.
FreeBSD 14 supports the RESOLVE_BENEATH semantics where `..` is a
capability error even when the base fd is the root directory.
@sunfishcode sunfishcode merged commit 465c70b into main Jan 2, 2024
22 checks passed
@sunfishcode sunfishcode deleted the sunfishcode/freebsd-fixes branch January 2, 2024 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant