Skip to content

test1560: allow to build and run without LDAP support - #22312

Closed
bagder wants to merge 1 commit into
masterfrom
bagder/test1560-no-ldap
Closed

test1560: allow to build and run without LDAP support#22312
bagder wants to merge 1 commit into
masterfrom
bagder/test1560-no-ldap

Conversation

@bagder

@bagder bagder commented Jul 13, 2026

Copy link
Copy Markdown
Member

No description provided.

@bagder
bagder marked this pull request as ready for review July 13, 2026 20:01
@bagder
bagder requested a review from Copilot July 13, 2026 20:01

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.

Pull request overview

This PR updates curl’s URL API unit test 1560 so it can still be built and executed in configurations where LDAP protocol support is compiled out.

Changes:

  • Conditionally compile LDAP-related CURLU_GUESS_SCHEME test vectors in lib1560.c behind #ifndef CURL_DISABLE_LDAP.
  • Remove ldap from the required <features> list for tests/data/test1560 so the test is no longer skipped purely due to missing LDAP support.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
tests/libtest/lib1560.c Wraps LDAP guess-scheme test cases with #ifndef CURL_DISABLE_LDAP to avoid exercising LDAP expectations when LDAP is disabled.
tests/data/test1560 Drops ldap from required features so the test can run on non-LDAP builds.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bagder bagder closed this in eecc273 Jul 13, 2026
@bagder
bagder deleted the bagder/test1560-no-ldap branch July 13, 2026 20:05
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