On 10/18/2019 6:40 PM, Marcel Raad via curl-library wrote:
I'm currently trying to get a successful test suite run for curl compiled with 
MSYS GCC, which has more Unix-like behavior compared to MinGW.
(Or, to be exact, I'm trying to be able to add autotools builds to AppVeyor 
with only what is preinstalled.)

Virtually allfile://  tests are failing. They use paths like
file://localhost/%PWD%/log/test200.txt
which translates to something like
file://localhost//home/marcel/curl/tests/log/test200.txt
Note the double slash after the host name. This works fine on Linux, but 
doesn't on MSYS.
Is this format on purpose? Is it defined to work and an MSYS bug or something 
we should fix in the tests?

I don't think that ever worked for msys. Older versions allowed something like file://localhost/foo to read from the root of the current drive but that wouldn't work the way you expect. Like if the current drive was c it would have attempted c:/home/marcel/curl/..... Recent versions are stricter. I don't think it's an MSYS bug. curl for windows ( I assume WIN32 is defined here?) is going to attempt to write to windows paths, does msys filter that? I know it does with command line arguments so if you write -o /home/marcel/curl/out it actually changes the argument to something like -o C:/MinGW/msys/1.0/home/marcel/curl/out. I have an argumentparser [1] that can show you what happens.


[1]: https://gist.github.com/jay/19aba48653bd591cf4b90eb9249a302c


-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

Reply via email to