Skip to content

Conversation

jrflat
Copy link
Contributor

@jrflat jrflat commented Jul 31, 2025

Some tests used internal types/functions that are guarded by #if ENABLE_MOCKING (defined in debug builds), but their code wasn't guarded by #if ENABLE_MOCKING. This made the tests fail to build in release mode.

This PR guards the respective tests/types in #if ENABLE_MOCKING so we can run swift test -c release --enable-testable-imports as suggested in swiftlang/github-workflows#134.

@jrflat
Copy link
Contributor Author

jrflat commented Jul 31, 2025

@swift-ci please test

@jrflat jrflat merged commit 0c11fea into apple:main Jul 31, 2025
29 checks passed
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