]> git.ipfire.org Git - thirdparty/curl.git/commit
tests: Fix Windows test helper tool search & use it for handle64 origin/master
authorDan Fandrich <dan@coneharvesters.com>
Fri, 13 Oct 2023 18:46:39 +0000 (11:46 -0700)
committerDan Fandrich <dan@coneharvesters.com>
Tue, 17 Oct 2023 19:27:21 +0000 (12:27 -0700)
commit64936919b90278c9a173e007ccb7b0e7b3719850
treea6543eda192041325598fca044d8fce80503f587
parent03a70edc508c1674666643778942bcadf2997cba
tests: Fix Windows test helper tool search & use it for handle64

The checkcmd() and checktestcmd() functions would not have worked on
Windows due to hard-coding the UNIX PATH separator character and not
adding .exe file extension. This meant that tools like stunnel, valgrind
and nghttpx would not have been found and used on Windows, and
inspection of previous test runs show none of those being found in pure
Windows CI builds.

With this fixed, they can be used to detect the handle64.exe program
before attempting to use it. When handle64.exe was called
unconditionally without it existing, it caused perl to abort the test
run with the error

    The running command stopped because the preference variable
    "ErrorActionPreference" or common parameter is set to Stop:
    sh: handle64.exe: command not found

Closes #12115
tests/pathhelp.pm
tests/servers.pm