8000 tests: stop using libcurl's strdup by bagder · Pull Request #17297 · curl/curl · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tests: stop using libcurl's strdup #17297

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

tests: stop using libcurl's strdup #17297

wants to merge 2 commits into from

Conversation

bagder
Copy link
Member
@bagder bagder commented May 8, 2025

It is not provided as a curlx function so should not be used outside of libcurl.

I strongly suspect that no system we build the test suite on lack strdup so this will not cause any harm.

It is not provided as a curlx function so should not be used outside of
libcurl.

I strongly suspect that no system we build the test suite on lack strdup
so this will not cause any harm.
@bagder bagder added the tests label May 8, 2025
@dfandrich
Copy link
Contributor

I strongly suspect that no system we build the test suite on lack strdup so this will not cause any harm.

It's POSIX so I think you're right.

Curl_wcsdup needs to be dealt with but it looks like just dropping it or setting to NULL is enough since wcsdup isn't used in the test code.

@testclutch
Copy link

Analysis of PR #17297 at aa5ce58e:

Test 637 failed, which has NOT been flaky recently, so there could be a real issue in this PR.

Test 640 failed, which has NOT been flaky recently, so there could be a real issue in this PR.

Generated by Testclutch

@bagder bagder marked this pull request as ready for review May 9, 2025 08:03
@bagder
Copy link
Member Author
bagder commented May 9, 2025

The private version was added in b0936b8 back in 2000 for "Ultrix" apparently.

@bagder bagder closed this in 9468503 May 9, 2025
@bagder bagder deleted the bagder/tests-strdup branch May 9, 2025 08:09
Sign up for free to join this conversati 549F on on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants
0