Skip to content

tests: add source root to include paths#755

Merged
BLumia merged 1 commit into
linuxdeepin:masterfrom
felixonmars:patch-3
Jul 10, 2026
Merged

tests: add source root to include paths#755
BLumia merged 1 commit into
linuxdeepin:masterfrom
felixonmars:patch-3

Conversation

@felixonmars

Copy link
Copy Markdown
Member

The test target compiles widget sources directly from the shared source list. Some of those sources include private util headers through paths such as "util/dprivateaccessor_p.h", but the target only adds src/widgets and the public include directories to its include search path.

Add the source root to the test target's private include paths so source-internal includes resolve the same way they do for the library target.

This fixes builds with tests enabled after the private accessor refactor.

The test target compiles widget sources directly from the shared source list. Some of those sources include private util headers through paths such as "util/dprivateaccessor_p.h", but the target only adds src/widgets and the public include directories to its include search path.

Add the source root to the test target's private include paths so source-internal includes resolve the same way they do for the library target.

This fixes builds with tests enabled after the private accessor refactor.

@sourcery-ai sourcery-ai Bot 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.

Sorry @felixonmars, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@deepin-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: BLumia, felixonmars

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@BLumia BLumia merged commit 07596aa into linuxdeepin:master Jul 10, 2026
26 of 27 checks passed
@felixonmars felixonmars deleted the patch-3 branch July 10, 2026 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants