Skip to content

Fix Windows test failures in ls scenarios#39

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit intomainfrom
matt-dz/fix-windows-test-failures
Mar 10, 2026
Merged

Fix Windows test failures in ls scenarios#39
gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit intomainfrom
matt-dz/fix-windows-test-failures

Conversation

@matt-dz
Copy link
Collaborator

@matt-dz matt-dz commented Mar 10, 2026

Summary

  • Fix 3 pre-existing Windows CI failures in ls test scenarios
  • ls -l long format tests: Windows maps chmod 0644 to -rw-rw-rw- (no Unix group/other permission bits), so add stdout_contains_windows with the correct Windows mode string
  • ls /etc sandbox test: /etc doesn't exist on Windows, producing "no such file or directory" instead of "permission denied", so add stderr_windows override

Test plan

  • Verified locally on macOS (non-Windows assertions unchanged)
  • CI: windows-latest job should pass

🤖 Generated with Claude Code

- basic_long.yaml, human_readable.yaml: Add stdout_contains_windows
  with -rw-rw-rw- since Windows doesn't support Unix group/other
  permission bits (chmod 0644 maps to -rw-rw-rw-)
- outside_allowed_paths.yaml: Add stderr_windows matching the actual
  Windows error. On Windows /etc has no drive letter so it resolves
  as a relative path inside the sandbox temp dir, where os.Root
  produces "statat etc: no such file or directory".

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@matt-dz matt-dz force-pushed the matt-dz/fix-windows-test-failures branch from ae8df60 to 611e63d Compare March 10, 2026 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants