You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update documentation to explain misconfigurations of SWT_ conditions. (#772)
This PR was supposed to be part of #769, but I must have blown away a
local commit because it didn't make it into that PR.
This PR updates Porting.md to explain when a developer might encounter
an error due to mismatched `SWT_` conditions. It ensures that exit tests
require process spawning to be enabled/implemented by adding a
dependency between `SWT_NO_PROCESS_SPAWNING` and `SWT_NO_EXIT_TESTS`.
This PR also tweaks which bits of `ExitTest` are exposed on platforms
that do not support exit tests at all. The type needs to be exposed so
that `ExitTest.Result` is exposed so that we can correctly expose
`#expect(exitsWith:)` and `#require(exitsWith:)` while marking them
unavailable, as opposed to hiding the macros and not giving a developer
clear diagnostics.
### Checklist:
- [ ] Code and documentation should follow the style of the [Style
Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md).
- [ ] If public symbols are renamed or modified, DocC references should
be updated.
0 commit comments