Skip to content

test(windows): skip symlink fixtures on access denied - #242

Closed
Joeygod7171 wants to merge 1 commit into
A3S-Lab:mainfrom
Joeygod7171:feat/windows-symlink-preflight
Closed

Joeygod7171 wants to merge 1 commit into
A3S-Lab:mainfrom
Joeygod7171:feat/windows-symlink-preflight

Conversation

@Joeygod7171

Copy link
Copy Markdown

Problem

Windows hosts without Developer Mode or SeCreateSymbolicLinkPrivilege can report either ERROR_PRIVILEGE_NOT_HELD (1314) or ERROR_ACCESS_DENIED (5) when the test fixture creates a symbolic link. The Windows-only tests only skipped 1314, so an otherwise expected capability denial failed the test suite.

Change

Treat both documented Windows denial codes as an unavailable symlink capability in the Windows fixture helpers. Runtime extraction behavior is unchanged: OCI symlinks are still preserved and never flattened.

Validation

  • cargo fmt --manifest-path src/Cargo.toml --all -- --check
  • cargo test --manifest-path src/Cargo.toml -p a3s-box-core -p a3s-box-runtime --lib --no-run
  • git diff --check

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.

2 participants