Change #282061
| Category | curl |
| Changed by | Samuel Henrique <samueloph@debian.org> |
| Changed at | Thu 17 Sep 2026 14:47:59 |
| Repository | https://github.com/curl/curl.git |
| Project | curl |
| Branch | master |
| Revision | 540ee5b560cc6e775e11317048a13cc7e355bf91 |
Comments
tests: add test cases for --styled-output The bold header names and the Location: hyperlink were not covered by any test case, since the test suite could not make curl believe that the output goes to a terminal in the header callback. Make the debug-only CURL_ISATTY environment variable set the tool-wide isatty flag when the transfer is created, instead of only affecting the binary output check in the write callback. The write callback already uses that flag. Test 1425 and 1426 use CURL_ISATTY to check the binary output protection, so they now use --no-styled-output to keep their output plain. The styled test does not run on Windows, where curl only uses styled output when stdout is a console with virtual terminal processing enabled and never writes the hyperlinks. It sets VTE_VERSION so that the hyperlink is written regardless of the terminal running the tests. Closes #22937
Changed files
- src/tool_cb_wrt.c
- src/tool_operate.c
- tests/data/Makefile.am
- tests/data/test1425
- tests/data/test1426
- tests/data/test1689
- tests/data/test1690