Skip to content

Commit 713b032

Browse files
committed
OpenBSD
1 parent a542b54 commit 713b032

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

Documentation/ABI/TestContent.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ section in built test products:
2626
| Platform | Binary Format | Section Name |
2727
|-|:-:|-|
2828
| macOS, iOS, watchOS, tvOS, visionOS | Mach-O | `__DATA_CONST,__swift5_tests` |
29-
| Linux, FreeBSD, Android | ELF | `swift5_tests` |
29+
| Linux, FreeBSD, OpenBSD, Android | ELF | `swift5_tests` |
3030
| WASI | WebAssembly | `swift5_tests` |
3131
| Windows | PE/COFF | `.sw5test`[^windowsPadding] |
3232

Sources/Testing/Discovery+Platform.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ private func _testContentSectionBounds() -> [SectionBounds] {
8585
return _sectionBounds.rawValue
8686
}
8787

88-
#elseif os(Linux) || os(FreeBSD) || os(Android)
88+
#elseif os(Linux) || os(FreeBSD) || os(OpenBSD) || os(Android)
8989
// MARK: - ELF implementation
9090

9191
private import SwiftShims // For MetadataSections

Sources/Testing/Test.swift

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ public struct Test: Sendable {
6565
/// | watchOS | `UnsafePointer<mach_header>` |
6666
/// | Linux, FreeBSD, Android (32-bit) | `UnsafePointer<Elf32_Ehdr>` |
6767
/// | Linux, FreeBSD, Android (64-bit) | `UnsafePointer<Elf64_Ehdr>` |
68+
/// | OpenBSD | `UnsafePointer<Elf_Ehdr>` |
6869
/// | Windows | `HMODULE` |
6970
///
7071
/// The value of this property is distinct from the pointer returned by

Sources/TestingMacros/Support/TestContentGeneration.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func makeTestContentRecordDecl(named name: TokenSyntax, in typeName: TypeSyntax?
7070
#if hasFeature(SymbolLinkageMarkers)
7171
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || os(visionOS)
7272
@_section("__DATA_CONST,__swift5_tests")
73-
#elseif os(Linux) || os(FreeBSD) || os(Android) || os(WASI)
73+
#elseif os(Linux) || os(FreeBSD) || os(OpenBSD) || os(Android) || os(WASI)
7474
@_section("swift5_tests")
7575
#elseif os(Windows)
7676
@_section(".sw5test$B")

0 commit comments

Comments
 (0)