]> git.ipfire.org Git - thirdparty/curl.git/commit
tests/libtest/cli*: fix init/deinit, leaks, and more
authorViktor Szakats <commit@vsz.me>
Fri, 31 Oct 2025 16:36:27 +0000 (17:36 +0100)
committerViktor Szakats <commit@vsz.me>
Fri, 31 Oct 2025 19:56:05 +0000 (20:56 +0100)
commit70f240b2ed835a5f88968f1ea2e0239f9724c9f0
treef38ec4b63a45649fe800d59452be5a4ef8669c18
parentd29f14b9cf0d38f3887b6eadc71af16903bc7f5b
tests/libtest/cli*: fix init/deinit, leaks, and more

- add global init and deinit where missing.
- check global init success.
- improve cleaning up on error codepaths.
- drop `CLI_ERR()` macro, that could quit.
  Also make error messages tell the reason.

Closes #19309
tests/libtest/cli_h2_pausing.c
tests/libtest/cli_h2_serverpush.c
tests/libtest/cli_h2_upgrade_extreme.c
tests/libtest/cli_hx_download.c
tests/libtest/cli_hx_upload.c
tests/libtest/cli_tls_session_reuse.c
tests/libtest/cli_upload_pausing.c
tests/libtest/cli_ws_data.c
tests/libtest/cli_ws_pingpong.c