Skip to content

ClangImporter: Improve tests for mirrored imports#89430

Merged
tshortli merged 2 commits into
swiftlang:mainfrom
tshortli:improve-mirrored-imports-tests
May 28, 2026
Merged

ClangImporter: Improve tests for mirrored imports#89430
tshortli merged 2 commits into
swiftlang:mainfrom
tshortli:improve-mirrored-imports-tests

Conversation

@tshortli
Copy link
Copy Markdown
Contributor

Use -verify-additional-prefix to parameterize matching expected diagnostics rather than resorting to FileCheck. Also, check swift-ide-test output in the test to make it easier to see exactly what ClangImporter is doing. Also, add a test case that reproduces rdar://166912341 explicitly.

Copy link
Copy Markdown
Member

@hnrklssn hnrklssn left a comment

Choose a reason for hiding this comment

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

nice, thanks!

@tshortli tshortli force-pushed the improve-mirrored-imports-tests branch 3 times, most recently from 46b69fc to 5fc4c2a Compare May 28, 2026 03:18
tshortli added 2 commits May 28, 2026 07:50
Use -verify-additional-prefix to parameterize matching expected diagnostics
rather than resorting to FileCheck. Also, check swift-ide-test output in the
test to make it easier to see exactly what ClangImporter is doing.
@tshortli tshortli force-pushed the improve-mirrored-imports-tests branch from 5fc4c2a to d29b57b Compare May 28, 2026 14:50
@tshortli
Copy link
Copy Markdown
Contributor Author

@swift-ci please smoke test

@tshortli tshortli merged commit 26b68af into swiftlang:main May 28, 2026
3 checks passed
@tshortli tshortli deleted the improve-mirrored-imports-tests branch May 28, 2026 21:27
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.

2 participants