# fs: add test for Windows ready-only file deletion\. · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/55b2456c1187b22b2b8e2d3643aff86815dae551)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 55b2456c1187b22b2b8e2d3643aff86815dae551

Requested commit: 55b2456c1187b22b2b8e2d3643aff86815dae551

Commit: 55b2456c1187b22b2b8e2d3643aff86815dae551

Tree: f7d389a15e4e2729cff9cef02a39e8c58dffd33a

Author: xEgoist

Committer: xEgoist

## Message

```
fs: add test for Windows ready-only file deletion.

Deleting a read-only file should result in `AccessDenied` (`CANNOT_DELETE`).

Note: This test was observed to fail when the file is closed then reopened
before the change in permission due to the absence of
`FILE_WRITE_ATTRIBUTES` when re-opened. (see #15316).

```

## Parents

- [89334fae205d02874fec1571e0637cfa1894ff1e](https://git.cafe/gitcafe/zig/commit/89334fae205d02874fec1571e0637cfa1894ff1e?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/55b2456c1187b22b2b8e2d3643aff86815dae551?format=markdown)
