# test: skip POSIX mode-bit assertions on a Windows host · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/af43ec9288c60f8309c7a38bd31d57117ac3a95d)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: af43ec9288c60f8309c7a38bd31d57117ac3a95d

Requested commit: af43ec9288c60f8309c7a38bd31d57117ac3a95d

Commit: af43ec9288c60f8309c7a38bd31d57117ac3a95d

Tree: 1a98c02ba50c9931887b810004f85b73fffe0a09

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
test: skip POSIX mode-bit assertions on a Windows host

Several tests force a failure with chmod (0o555 directory, 0o000 file) or
assert exact 0o600/0o755 mode bits. NTFS has no POSIX modes: chmod on a
directory is a no-op, a file cannot be made unreadable, and stat reports
0o666. The write these tests expect to fail succeeds, so the assertion
inverts. Skip them where the host is Windows; the win32 code paths under
test already bypass the mode check.

Also skip the RotatingFileSink over-long-name test there, where the OS
reports ENOENT rather than ENAMETOOLONG and the sink's missing-file
handling is what runs.

Co-Authored-By: Claude Code <noreply@anthropic.com>

```

## Parents

- [11da79bf1749dd38c5d89072ca3db3b5a684400f](https://git.cafe/pingdotgg/t3code/commit/11da79bf1749dd38c5d89072ca3db3b5a684400f?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/af43ec9288c60f8309c7a38bd31d57117ac3a95d?format=markdown)
