Skip to content

tests: rename debug env to CURL_DEBUG_VERSION - #23252

Closed
vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:curl-debug-version-env
Closed

vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:curl-debug-version-env

Conversation

@vszakats

@vszakats vszakats commented Oct 4, 2026 •

Copy link
Copy Markdown
Member

From CURL_VERSION. To avoid confusion with the non-debug
CURL_VERSION macro, and to avoid possible, difficult-to-track-down
fallouts when CURL_VERSION is legitimately used for something else.

Refs:
libssh2/libssh2@51333f9
libssh2/libssh2#2590
libssh2/libssh2@bb8e095

From `CURL_VERSION`. To avoid confusion with the non-debug
`CURL_VERSION` macro, and to avoid possible, difficult-to-track-down
collision when `CURL_VERSION` is legitimately used for something else.

Refs:
libssh2/libssh2@51333f9
libssh2/libssh2#2590
libssh2/libssh2@bb8e095

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The implementation and affected test fixtures consistently use the new name, with no unresolved issues.

Review effort: Balanced
Findings: None

What changed in this PR

Renames the debug version override to CURL_DEBUG_VERSION, avoiding confusion with the public CURL_VERSION macro.

Changes:

  • Updates the debug-only environment lookup and its comment.
  • Updates both affected JSON-output test fixtures.
File Description
tests/​data/​test972 Uses the renamed debug environment variable.
tests/​data/​test970 Uses the renamed debug environment variable.
lib/​version.c Reads CURL_DEBUG_VERSION in debug builds.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@vszakats vszakats closed this in fbf3d86 Oct 4, 2026
@vszakats
vszakats deleted the curl-debug-version-env branch October 4, 2026 22:09
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