We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b37036 commit d19a98dCopy full SHA for d19a98d
Sources/Testing/Discovery+Platform.swift
@@ -98,6 +98,12 @@ private func _testContentSectionBounds() -> [SectionBounds] {
98
99
withUnsafeMutablePointer(to: &result) { result in
100
swift_enumerateAllMetadataSections({ sections, context in
101
+ let version = sections.load(as: UInt.self)
102
+ guard version >= 4 else {
103
+ // This structure is too old to contain the swift5_tests field.
104
+ return true
105
+ }
106
+
107
let sections = sections.load(as: MetadataSections.self)
108
let result = context.assumingMemoryBound(to: [SectionBounds].self)
109
0 commit comments