Skip to content

test1175: fix to run, and fix documentation issues detected#17880

Closed
vszakats wants to merge 5 commits into
curl:masterfrom
vszakats:test1175
Closed

test1175: fix to run, and fix documentation issues detected#17880
vszakats wants to merge 5 commits into
curl:masterfrom
vszakats:test1175

Conversation

@vszakats
Copy link
Copy Markdown
Member

@vszakats vszakats commented Jul 9, 2025

Fix test 1175 by passing the source root directory (was: tests).

Before this patch this caused silent Perl warnings and returning success
without executing the tests, due to:

readline() on closed filehandle $f at ../../tests/test1175.pl line 55.
readline() on closed filehandle $f at ../../tests/test1175.pl line 39.

Running the test revealed these issues:

CURLE_FUNCTION_NOT_FOUND is not in libcurl-errors.md
CURLE_HTTP_POST_ERROR is not in libcurl-errors.md
CURLE_TELNET_OPTION_SYNTAX is not in libcurl-errors.md
CURLM_CALL_MULTI_SOCKET is not in libcurl-errors.md

Apply fixes:

  • mark CURLE_FUNCTION_NOT_FOUND deprecated by 7.53.0
  • mark CURLE_HTTP_POST_ERROR deprecated by 7.56.0
  • mark CURLE_TELNET_OPTION_SYNTAX deprecated by 7.78.0
  • document CURLM_CALL_MULTI_SOCKET as a synonym for
    CURLM_CALL_MULTI_PERFORM
  • test1477: exclude CURLM_CALL_MULTI_SOCKET.

But, these weren't officially deprecated. It may need more updates
to reflect that in other places, or fix the issues differently.

Follow-up to 66ec950 #12424
Follow-up to 74f441c #4628

Cherry-picked from #17877

Fix test1175 to pass the correct source root directory.
Before this patch this caused a silent failure and the tests didn't run.

With this fixed, it detected these issues:
```
CURLE_FUNCTION_NOT_FOUND is not in libcurl-errors.md
CURLE_HTTP_POST_ERROR is not in libcurl-errors.md
CURLE_TELNET_OPTION_SYNTAX is not in libcurl-errors.md
CURLM_CALL_MULTI_SOCKET is not in libcurl-errors.md
```

Fix them by:
- marking `CURLE_FUNCTION_NOT_FOUND` deprecated by 7.53.0
- marking `CURLE_HTTP_POST_ERROR` deprecated by 7.56.0
- marking `CURLE_TELNET_OPTION_SYNTAX` deprecated by 7.78.0
- documenting `CURLM_CALL_MULTI_SOCKET` as a synonym for
  `CURLM_CALL_MULTI_PERFORM`

But, these weren't officially deprecated. It may need more
updates to reflect that in other places, or fix the issues
differently.

Cherry-picked from curl#17877
@github-actions github-actions Bot added the tests label Jul 9, 2025
@vszakats vszakats changed the title test1175: fix to run, and fix docs to pass test1175: fix to run, and fix documentation issues detected Jul 9, 2025
@testclutch

This comment was marked as resolved.

@vszakats vszakats marked this pull request as draft July 9, 2025 23:31
vszakats added 3 commits July 10, 2025 03:12
It's regex is not picking it up from multi.h because it's a #define,
not an enum with an indent.
@vszakats vszakats marked this pull request as ready for review July 10, 2025 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants