]> git.ipfire.org Git - thirdparty/curl.git/commit
test615: fix for Cygwin, unignore in CI
authorViktor Szakats <commit@vsz.me>
Sun, 23 Mar 2025 23:31:33 +0000 (00:31 +0100)
committerViktor Szakats <commit@vsz.me>
Mon, 24 Mar 2025 15:49:57 +0000 (16:49 +0100)
commit579625efa577f99e914ef6bee6505ec18d9abfbf
treed69b2ef22f31c2f20ebbfa511a314c54b52f6b6c
parent89101fabf88644a0717886985712e59f6def2275
test615: fix for Cygwin, unignore in CI

Setting a server-side file read-only by `chmod 0444` has does not
prevent overwriting it via SFTP upload (as tested in CI).

Fix it by setting its MS-DOS read-only attribute in addition. It
requires the Cygwin tool `chattr`.

Also unignore in CI.

Fixes:
```
test 0615...[SFTP put remote failure]
curl returned 0, when expecting 9
 615: exit FAILED
=== Start of file stderr615
   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                  Dload  Upload   Total   Spent    Left  Speed
   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
 100    30    0     0  100    30      0     93 --:--:-- --:--:-- --:--:--    95

 100    30    0     0  100    30      0     92 --:--:-- --:--:-- --:--:--    92
=== End of file stderr615
```
Ref: https://github.com/curl/curl/actions/runs/14037991918/job/39300723214#step:12:1269

Closes #16818
.github/workflows/windows.yml
tests/libtest/test613.pl