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
Improve ExitStatus.description for signals. (#1302)
This PR uses the `sys_signame` array present on many UNIX-like systems
to derive a better description for values of type `ExitStatus` and
`ExitTest.Condition`. (On Linux, the equivalent `sigabbrev_np()` is
used. Windows and WASI don't have an equivalent API.)
Before:
```swift
let s = ExitStatus.signal(SIGABRT)
print(s) // ".signal(12345)"
```
After:
```swift
let s = ExitStatus.signal(SIGABRT)
print(s) // ".signal(SIGABRT)"
```
### Checklist:
- [x] Code and documentation should follow the style of the [Style
Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md).
- [x] If public symbols are renamed or modified, DocC references should
be updated.
0 commit comments