Skip to content

Tighten the basejail mount test assertions - #774

Merged
gronke merged 1 commit into
mainfrom
basejail-test-feedback
Jul 8, 2026
Merged

Tighten the basejail mount test assertions#774
gronke merged 1 commit into
mainfrom
basejail-test-feedback

Conversation

@gronke

@gronke gronke commented Jul 8, 2026

Copy link
Copy Markdown
Member

This addresses the two accepted items from the review feedback on the basejail test.

  • The write probe asserts errno EROFS instead of accepting any OSError, so a permission or path error can no longer pass as proof of a read-only mount.
  • The clean-unmount check covers every base directory after stopping the jail instead of sampling only bin.

Validation: 8 TestNullFSBasejail tests pass in the FreeBSD 13.5 VM

The write probe asserts EROFS instead of accepting any OSError, and the check for a clean unmount covers every base directory after stopping the jail.
@gronke
gronke merged commit 57d5a68 into main Jul 8, 2026
3 checks passed
@gronke
gronke deleted the basejail-test-feedback branch July 8, 2026 09:16
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