Change #286414
| Category | curl |
| Changed by | Viktor Szakats <commit@vsz.me> |
| Changed at | Fri 16 Oct 2026 02:21:37 |
| Repository | https://github.com/curl/curl.git |
| Project | curl |
| Branch | master |
| Revision | 780405b584205271196c6990d10ac31935f30cc7 |
Comments
tests: add `--dump-module-paths` debug option (Windows) Extend this undocumented curl tool command-line option to test binaries. Useful to debug what's actually loaded, e.g. before running tests. Convert the existing tool_doswin.c function to a macro, move it to curl_setup.h so that tests can access it. Also make the macro print the lines directly with a printf function received as an argument. To avoid code duplication, detect Unicode without the preprocessor to support both dual Unicode/non-Unicode binaries such as the curl tool, and tests which are always non-Unicode. Also: - appveyor: show module paths for test binaries in verbose mode. - appveyor: fix tests to load the same OpenSSL DLLs as does the curl tool. Before this patch, they were loading: ``` C:\Windows\SYSTEM32\libcrypto-3-x64.dll C:\Windows\SYSTEM32\libssl-3-x64.dll ``` Which may be different from those they were built against, and which reside in `C:/OpenSSL-v3*/*.dll`. Copy the correct DLLs manually next to the test binaries, matching what the script is already doing for the curl tool. - appveyor: add `-p` option to `cp`. Test run: https://ci.appveyor.com/project/curlorg/curl/builds/54903964 Cherry-picked from #23306 Closes #23416
Changed files
- appveyor.sh
- lib/curl_setup.h
- src/tool_doswin.c
- src/tool_doswin.h
- src/tool_main.c
- tests/libtest/first.c
- tests/server/first.c