]> git.ipfire.org Git - thirdparty/curl.git/commit
test613: make it pass on Windows, fix postprocess, unignore in CI
authorViktor Szakats <commit@vsz.me>
Sat, 22 Mar 2025 09:41:44 +0000 (10:41 +0100)
committerViktor Szakats <commit@vsz.me>
Mon, 24 Mar 2025 09:05:17 +0000 (10:05 +0100)
commitefa65b24ae22d8ae2798fb1a2b4cdc113270bdaf
tree4b0bab5832f681c4cca3012e6cd3ab7aa98ddd5d
parentd838d434305bd97c0ce5488f24945beff878adc9
test613: make it pass on Windows, fix postprocess, unignore in CI

- on native Windows (also when using MSYS2 openssh), the group and other
  permissions do not end up as requested by Perl's chmod:
  ```diff
  --- log/8/check-expected
  +++ log/8/check-generated
  @@ -1,3 +1,3 @@
   d?????????    N U         U               N ???  N NN:NN asubdir[LF]
  --rw?rw?rw?    1 U         U              37 Jan  1  2000 plainfile.txt[LF]
  +-rw?r-?r-?    1 U         U              37 Jan  1  2000 plainfile.txt[LF]
   -r-?r-?r-?    1 U         U              47 Dec 31  2000 rofile.txt[LF]
  ```
  Ref: https://github.com/curl/curl/actions/runs/14004029192/job/39215359241?pr=16781#step:15:1596
  Fix it by ignoring group and other attributes.

- fix failing postprocess cleanup by making the read-only test file
  writeable again before deleting it. Fixing:
  ```
  Directory not empty at ../../tests/libtest/test613.pl line 83.
  ```
  (seen on Windows with Git for Windows `perl.exe`)

- unignore in GHA/windows.

Closes #16791
.github/workflows/windows.yml
tests/data/test613
tests/data/test614
tests/libtest/test613.pl