Skip to content

Commit b442078

Browse files
authored
Add links to glibc documentation for exit test header references. (#604)
This PR links `stdlib.h` and `signal.h` in the Linux-specific documentation for exit tests to their corresponding documentation in the glibc manual. Corresponding links already exist for the macOS- and Windows-specific bits. Exit tests remain an experimental feature. ### 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.
1 parent a62bf99 commit b442078

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Testing/ExitTests/ExitCondition.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public enum ExitCondition: Sendable {
4141
/// | Platform | Header |
4242
/// |-|-|
4343
/// | macOS | [`<stdlib.h>`](https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/_Exit.3.html), [`<sysexits.h>`](https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/sysexits.3.html) |
44-
/// | Linux | `<stdlib.h>`, `<sysexits.h>` |
44+
/// | Linux | [`<stdlib.h>`](https://sourceware.org/glibc/manual/latest/html_node/Exit-Status.html), `<sysexits.h>` |
4545
/// | Windows | [`<stdlib.h>`](https://learn.microsoft.com/en-us/cpp/c-runtime-library/exit-success-exit-failure) |
4646
///
4747
/// On POSIX-like systems including macOS and Linux, only the low unsigned 8
@@ -60,7 +60,7 @@ public enum ExitCondition: Sendable {
6060
/// | Platform | Header |
6161
/// |-|-|
6262
/// | macOS | [`<signal.h>`](https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/signal.3.html) |
63-
/// | Linux | `<signal.h>` |
63+
/// | Linux | [`<signal.h>`](https://sourceware.org/glibc/manual/latest/html_node/Standard-Signals.html) |
6464
/// | Windows | [`<signal.h>`](https://learn.microsoft.com/en-us/cpp/c-runtime-library/signal-constants) |
6565
#if os(Windows)
6666
@available(*, unavailable, message: "On Windows, use .failure instead.")

0 commit comments

Comments
 (0)