Skip to content

Add unittests for the remangler, particularly to cover error handling. #58919

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

Merged
merged 1 commit into from
May 16, 2022

Conversation

adrian-prantl
Copy link
Contributor

@adrian-prantl adrian-prantl commented May 14, 2022

We currently don't have any tests for remangler error handling, because in asserts builds it asserts. This patch adds a flag that only exists in !NDEBUG builds to turn off assertions when inside the unit tests.

@adrian-prantl
Copy link
Contributor Author

@swift-ci test

@adrian-prantl adrian-prantl requested a review from eeckstein May 14, 2022 00:54
We currently don't have any tests for remangler error handling, because in
asserts builds it asserts. This patch adds a flag that only exists in !NDEBUG
builds to turn off assertions when inside the unit tests.
@adrian-prantl
Copy link
Contributor Author

@swift-ci test

@adrian-prantl adrian-prantl merged commit d11fba7 into swiftlang:main May 16, 2022
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